CSS Properties Flashcards
Color
Color
Size of font
font-size
Sans serif
font-family: sans-serif
Uppercase
text-transform: uppercase
Font style
font-style: italic
Line height
Where to set this property?
line-height: 1.5
Good thing to set this in the body tag! (Just as for example sans-serif property)
All the lines for all the text will now adjust to what you set here
Text align
text-align: center
Puts the text in the middle of the element block
Set under line text
text-decoration: underline dotted orangered
Sets list style back to default
list-style: none;
Background color
background-color: #00ffff
Hexadecimal value
00ffff
Each pair of 2 characters refers to a hexadecimal value in RGB
Set border
border-top: 5px solid #1098ad;
Border 3 elements?
Border always has 3 values: Line size, fill and color
Padding elements?
padding: 20px 40px;
First value refers to top-bottom, second value refers to left-right
Create extra white space at the bottom outside of the element
margin-bottom:10px;