Sunday, February 27, 2011
5th Blog Post
This week's class we continued to look at CSS. We learnt a new CSS rule which states that a selector is what is outside of the curly brace and declaration is whatever that is outside of the curly brace. We also learnt how to write a comment in CSS which is for eg /* I am pretty */. Finally, we learnt how to add a background image to a website by background-image: url("Unknown.jpeg"). This of course is an example. Lastly, we learnt how to make changes to the height, width etc. of the background of a website, font, links, the first letter of a paragraph etc.
Subscribe to:
Post Comments (Atom)
Hey Yanikee,
ReplyDeleteGuess who?! Ah! How did you know? so....
A css rule is made up of specific parts
selector {property: value;}
The 'selector' is the part in the css rule that identifies/selects the specific html element/s that you wish to 'style'.
The css 'property' or 'attribute' indicates the property of the html element you wish to change.
The css 'value' tries to indicate what the new value of that property will be.
The css 'declaration' is the combination of the property and the value..
Example
a { color:red; }
a = selector
color = property
red = value
color:red; = declaration
Any clearer?