![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i've noticed that the CSS Zen Garden (csszengarden.com) almost always places what seem to me to be extranious span tags inside other tags. here's an example: div id="pageHeader" h1><span>css Zen Garden</span></h1 h2><span>The Beauty of <acronym title="Cascading Style Sheets">CSS</acronym> Design</span></h2 /div what are the span tags between the h1 and h2 supposed to do that h1 and h2 (or pageHeader, or some other, "parent" tag) can't, already, do? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
allow you to pull elements out of context? for example - your h1 style coulds specify a monster-sized background image with the words "css Zen Garden" in a tripped out font... and you apply display:none to the span so that the original text doesn't cover it up... Or even to position it in a different spot from the h1 tag all together... Just some thoughts on the reasoning behind that. |
#5
| |||
| |||
|
|
Since Zen Garden is marking up the content to allow generic styling, the above becomes necessary at all such points where designers might need support for this kind of structure. |
![]() |
| Thread Tools | |
| Display Modes | |
| |