At 1:38 PM -0500 2/10/10, Robert Cummings wrote:
Agreed. Those make sense to demarcate the structure layout of the document... but still, for styling the class makes more sense since it keeps the specificity low and easy to override (especially true for skinnable apps). In my experience I've seen quite often things like:

<div id="header_wrapper">
    <div id="header">
        <div id="left">LOGO</div>
    </div>
</div>

And then of course I'll see later:

<div id="footer_wrapper">
    <div id="footer">
        <div id="left">COPYRIGHT</div>
    </div>
</div>

And in the specific example I responded to the example was:

<div id="aside">
    <aside>
        // stuff
    </aside>
</div>

This seemed like a classic example of ID abuse.

Cheers,
Rob.

If you use:

        <div class="left">COPYRIGHT</div>

then you can align other elements on the page.

I also use attributes like:

        <div class="floatR">COPYRIGHT</div>

I understand the other view point on this, but this is my practice.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to