Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Crib Sheet, cheatsheets, shortcut lists, syntax lists, & others


Wrapdida - 4:07 pm on Sep 15, 2004 (gmt 0)


heres an example of once vs many

<div id="contains all spec for this block">
<h1></h1>
<p></P>
<ul><li></li></ul>
</div>

vs

<h1 class="ye1"><h1>
<p class="yes2"></p>
<p class="yes3"></p>
<li class="yes3"></li>
<li class="yes4"></li>

you're right, you can use class as to plentiful times as you want but if you have divided a page into zones and functional blocks, you wont have to repeat a rule for every line?

true, it maybe situational. i just dont like being redundant all over the place.

perhaps we can relay a more better basis for our expressions in why id vs class is relevant in some situations and in others its not if we had an example to study.


Thread source:: http://www.webmasterworld.com/css/4514.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com