-----Original Message-----
From: css-d-boun...@lists.css-discuss.org 
[mailto:css-d-boun...@lists.css-discuss.org] On Behalf Of Noel Taylor
Sent: Tuesday, June 30, 2009 1:47 PM
To: css-d@lists.css-discuss.org
Subject: Re: [css-d] progress bar

> Isn't making the spans "display: block" the same as just using divs?

Not at all.

Stop thinking about an HTML element's default styling as having to do with the 
element at all.

HTML tells you about structure.  the div(ision) divides parts of the document.  
It's block-level, because it's for creating blocks of structure.  (not at all 
related to display blocks, except by coincidence)

Span creates a division on inline-level elements (like a).

So telling your in-line element (span) to display as a box (that's all 
display:block means) is in no way against the letter or the spirit of the rules.

---Tim
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to