css help
css help
Out of context: Reply #9
- Started
- Last post
- 11 Responses
- JamesBoynton0
Jonathne... can you also help me with this please
#navigation { width: 12em; color: #333; }
div#navigation { width: 12em; color: #333; }Is there a difference if you put the word div in front of the #
Cheers
- technically no. though id styles (indicated with #) should only appear on 1 object. never more than once7point34
- so you wouldn't need to say its a div... the style sheet will just find the object with that id7point34
- classes can be tag specific though. (indicated with a . )
you can write different styles for p.nav, div.nav, span.nav etc.7point34