skip to Main Content

CSS based on class presence condition

I am new to CSS. In one use case I need to apply a CSS class, only when another is not present. <div class="border-solid p-2 bg-white mt-1 h-fit" [ngClass]="SOME_CONDITION ? 'tile-container' : ''" > <div class = 'chart-container'> <app-angualar-component></app-angualar-component> </div>…

VIEW QUESTION

Taildwind css align bottom

Hello I just tring send to bottom of its parent: <form class="flex flex-col w-full" (submit)="updatePhoto(title, description)"> <div class="w-full block"> <input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Photo's Title" [value]="photo.title" #title> </div> <div class="my-4 w-full">…

VIEW QUESTION
Back To Top
Search