Re: PHP Manual problems
| From: | tedd | Date: | Wed, 10 Feb 2010 22:13:58 +0000 |
| Subject: | Re: PHP Manual problems | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301971@lists.php.net to get a copy of this message | ||
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">If you use:<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.
<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