CSS selectors are the heart and soul of CSS. They define which HTML elements you are going to be manipulating with CSS code and you should have a solid understanding of them when you are finished with this tutorial.
css selector: where it fits in
In a typical CSS statement you have the following:
.SELECTOR { PROPERTY: VALUE }
"Property" is the CSS element you wish to manipulate and "VALUE" represents the value of the specified property.
css selector name
The selector name creates a direct relationship with the HTML tag you want to edit. If you wanted to change the way a paragraph tag behaved, the CSS code would look like:
div { PROPERTY: VALUE }
nav { PROPERTY: VALUE }
The above example is a template that you can use whenever you are manipulating the paragraph HTML element.
css selector: where it fits in
In a typical CSS statement you have the following:
.SELECTOR { PROPERTY: VALUE }
"Property" is the CSS element you wish to manipulate and "VALUE" represents the value of the specified property.
css selector name
The selector name creates a direct relationship with the HTML tag you want to edit. If you wanted to change the way a paragraph tag behaved, the CSS code would look like:
div { PROPERTY: VALUE }
nav { PROPERTY: VALUE }
The above example is a template that you can use whenever you are manipulating the paragraph HTML element.
No comments:
Post a Comment