View Single Post
  #13  
Old 07-12-2010, 07:15 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Why are they still using tables for layout?

I always set out my markup like this:

<div class="whatever">
<p>Paragraph text with <em>bold or whatever</em> within it.</p>
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
</div><!-- END OF WHATEVER -->

Then I just use descendent selectors for everything within the div,
.whatever p
.whatever ul

etc.

I zero out all the margins and padding right at the start of the CSS file.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote