-
Basic CSS I didn’t know
Here are just some little syntax things that I have learnt:
- If the property value has more than one word it needs to be placed in quotes. e.g. font-family:”sans serif”
- Don’t leave spaces between the value and the units e.g. 1000px not 1000 px
- In one of my first posts I said that CSS had to be defined inside <!— and —> now I know why! These are HTML comments. And the reason why you define it inside a comment is just in case someone is using an old browser then the CSS won’t recognize the syle tag and it will display your CSS as text - not cool!
next I’ll tackle background images.
Posted on April 29, 2009
blog comments powered by Disqus