[thelist] how does XHTML/CSS seperate content from design mor e than using nested tables and the like?

Fortune Elkins fortune_elkins at summithq.com
Thu May 9 13:55:01 CDT 2002


hiya!

besides what everyone else has said, it's a simple case of code bloat.

to position stuff with a table the way it's *so commonly done* needs a ton
of code:

<table align="center" cellpadding="0" cellspacing="0" width="100%
height="100%" bgcolor="#cccccc">
<tr><td><img src="/images/spacer.gif" height="50px" width="100px"></td></tr>
<tr><td>hello world!</td></tr>
<tr><td><img src="/images/spacer.gif" height="50px"
width="100px"></td></tr></table>

or whatever, etc.  you get the point -- it's a nightmare!

whereas with css, it's so much smaller:

<div id="cheese">hello world!</div>

#cheese {height: 100%; width:100%; background: #cccccc; text-align: center;
margin: 50px 0px 50px 0px;}

not that the style above would actually work <grin> but again, i think you
see the point!

right now css can be time-consuming to develop because of the crazy
situation with browser support. which is why i'm playing around with and
loving al sparber's projectseven.com layout designer 2 extension for DW. . .

have fun,

f


----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.




More information about the thelist mailing list