[UPHPU] More CSS frustration
Orson Jones
orson.uphpu at bookstore.usu.edu
Mon Jan 22 10:20:47 MST 2007
> If you mostly do sites that you never look at again, nor care if
> disabled users (including crawlers) need to access the site, or don't
> mind the extra bandwidth, then using no CSS might be better in the
> long term. Small sites getting little traffic can fit in this category.
Well, I've gotten to the point where I usually will end up using about this much table coding and do the rest in css.
<html>
<head>(normal head stuff here)</head>
<body>
<div id="top">
(top stuff)
</div>
<table id="leftright">
<tr><td id="left">
(navigation)
</td><td id="right">
(body)
</td></tr>
</table>
<div id="bottom">
(bottom stuff)
</div>
</body>
</html>
I seem to do less coding this way, and I still get most of the benefits of css. In order to have a live layout change, I would have to switch the two cells in php, but other than that, I haven't figured out an easier/more reliable way to do left-right yet. Refacing a website isn't a problem if you are using php. I have done similar things with divs, but I haven't completely figured out all the little quirks. (Perhaps I'll post one particular odity here later.) Also, I haven't seen that code hinder accessibility. (It shows up fine in lynx for example.)
Anyway, other than the left-right thing, I use css all the time.
Orson
More information about the UPHPU
mailing list