Re: css to replace table layout

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Wed, 24 Apr 2002 17:42:40 +0100
 To:  <hwg-style(at)hwg.org>
 References:  ntlworld bkrweb
  todo: View Thread, Original
At 07:33 24/04/02 -0500, bkrWeb Services wrote:
>I do know that the coding for indexcss.html validates.  This was one of 
>the first things I checked when it wasn't working right.

:)

There is more to writing good HTML than writing valid HTML.

The two things I noticed were the <.div class="center">. and the use of spans.

Ideally, the class name should reflect the meaning of the content, rather 
than the visual formatting. <.div class="main"> would probably have been 
better than <.div class="center">. Better still would have been to use no 
class in the div and apply the CSS to the unclassed div element.

Spans are a tricky thing. There is almost always some other structural 
markup that could be used in their place. Not sure what I'd use in your 
example though (because I haven't looked at it in much detail).

Andrew

--
http://aamcf.co.uk/

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA