WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > Defining column widths

Reply
  Thread Tools Display Modes
Old 27th July 12, 05:03 PM   #1
PapaGeek
WLC Lover
 
Join Date: Aug 2010
Posts: 68
Default Defining column widths

I’m an old table design guy being dragged kicking and screaming into the CSS positioning world - - - and I’m still confused!

Seems as if different browsers handle this issue differently!

I want to create a layout which is 960 pixels wide with 3 columns of content under the company banner. The outer columns are designed to be 150 pixels wide each, so the center column should be 660.

I don’t want the content to be flush up against the side of the page and the use of margin and padding is added to the width that I define for my DIV elements.

One way is to key the right and left columns before the center column, float them right and left and the center become “whatever” is left over. That just doesn’t seem precise to me.

What is the correct way to define my columns as DIVs and define each with an absolute size?
PapaGeek is offline   Reply With Quote
Old 31st July 12, 01:32 AM   #2
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,134
Default Re: Defining column widths

Give them all a width, float them all left. Use a faux image if you want them the same height.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum.
meesa is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:38 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.