Log in

View Full Version : two-column divs? and using css instead of tables...



djr33
09-29-2006, 10:10 PM
I have seen a lot that tables are a bad thing to use for layout.
Well... great.
What's your suggestion?

The only thing I can figure out to use to seperate two section on one line is to use cells in a table. Divs like to jump down to the next line, and that's about it.

If you want to get into something more complex, try this:
http://thebrb.com/stockpile

That's a complex php-based script that dynamically gets content from a database. However, at the end it simply puts the $content variable into the preexisting html, and outputs that.

How would you recreate that identically, without using tables?

mwinter
09-30-2006, 12:22 PM
Floats or absolute positioning. The usual two-column approach. I might have made an effort to use text rather than an image map for the left-hand side, though.

Mike

djr33
10-02-2006, 03:28 AM
I wanted control over the font/position so it fit in every browser (you need image support to have any use for the site anyway).

Really, I'm just curious. Doesn't seem that worth it to fix all of that. It's a pretty complex table.

Is there any particular reason I should?

I'm not too familiar with why tables are bad, just that it seems to be a common thing to say they are.