Hello,
Today I will go over some basic CSS And what Each part does!
Brackets
This is an opening bracket:
The code Bellow uses the universal Selector! What the universal selector does is it tells the website to apply what ever CSS that is in side opening and closing brackets to the entire webpage!
Its VERY important that you include this at the end of every line in your CSS:
Example CSS code:
So you could have the following CSS code:
So in this case the default font would be Times! if that font does not work for the user then Arial will be the One the browser try's next!
Today I will go over some basic CSS And what Each part does!
Brackets
This is an opening bracket:
- Code:
{
- Code:
}
The code Bellow uses the universal Selector! What the universal selector does is it tells the website to apply what ever CSS that is in side opening and closing brackets to the entire webpage!
- Code:
*
{
CSS HERE
}
Its VERY important that you include this at the end of every line in your CSS:
- Code:
;
- Code:
:
- Code:
Variable: action;
Example CSS code:
So you could have the following CSS code:
- Code:
*
{
font-family: Times, Arial;
color: red;
font-size: 12px;
background-color: black;
}
- Code:
font-family: Times, Arial;
So in this case the default font would be Times! if that font does not work for the user then Arial will be the One the browser try's next!
- Code:
color: red;
- Code:
font-size: 12px;
- Code:
background-color: black;