The if...else is a type of conditional statement that will execute a block of code when the condition in the if statement is truthy. If the condition is false, then the else block will be executed. Truthy and falsy values are converted to true or false in if statements. if (condition is true) { // code is executed } else { // code is executed } Any value that is not defined as falsy would be considered truthy in JavaScript. Here is a list of falsy values: false 0 (zero) -0 (negative zero) 0n (BigInt zero) "", '', `` (empty string) null undefined NaN (not a number)
The box property the box shadow property helpul for look better box shadow Inheritance selected container rules apply to descendants Cascading Style Sheets Multiple rules con be applied to the same element Specificity More specific selector`s rule wins over less specific selector Css elemnets Padding Margin Layouts
1. static 2 absolute 3. relative 4. fixed what do we change? Document flow + positioning context working with (Background) images Understanding Flexbox & Grid Diving deeper into Units Flexbox aligned and positioned inside such a box Flex container is the direct parent of the flex items Original Display: flex; Flex-direction: row; by default Flex-direction: column; Flex-direction: column-reverse Flex-direction:row-reverse; Flex-direction:row; Flex-wrap; allows the items to wrap as needed align-items : center ; Justify-content: space-between; Justify-content: space-around;
Comments
Post a Comment