Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML CSS

3 column layout in css

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: macek, egami, gesf

3 column layout in css

Postby mattsoftnet » Sat Mar 18, 2006 9:25 pm

for my ProSiteManager cms project, I decided to use xhtml and css. I've always used tables in the past to do a standard dynamic-body-width 3 column layout but I think maybe more people would use the opensource system if I use all css? tables would be much easier, but I'm not so sure it will be the best way for the future. what would you recommend, tables or all css? if css, how do you go about doing this?
New php-forum User
New php-forum User
Posts: 13
Joined: Wed Mar 15, 2006 8:38 pm

Postby Coditor » Sun Mar 19, 2006 1:24 pm


Tables are easier but have their cons. Tables (especially when nested) can be really slow to be built by a browser.

Create 3 main divs called "left", "center" and "right" and position them via css. You can use absolute positioning for example, or use "float:left" to position them. It takes a bit of fiddeling sometimes, but worth the effort.

If you have more details, we maybe able to give you further hints.

New php-forum User
New php-forum User
Posts: 243
Joined: Wed Feb 01, 2006 9:18 am
Location: Netherlands

Postby liquedus » Mon Oct 16, 2006 9:55 am

Never use tables for layouts.

As suggested above, implement in 3 seperate divs, my preference is given to floating them ;)
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby gesf » Tue Oct 17, 2006 3:11 am

Please take a look at this page liquedus.
User avatar
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Return to CSS

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.