Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS 3 Column Fluid Layout - Works in Everything but IE 6
Old 10-03-2006, 11:53 PM CSS 3 Column Fluid Layout - Works in Everything but IE 6
Junior Talker

Posts: 2
Trades: 0
hey everyone!

The problem is, that in IE 6 the 3 columns just fall under each other ...so in otherwise its just 1 column. It works fine in ...Firefox, Safari, IE 7, and probally most other broswers. I am unsure on what I would do to fix this. The site that the problem is occuring on is... http://www.ezgraphicstudio.com


The section of my css for this is....
Code:
/************************ LEFT SIDE COLUMN *****************/
#left {
       float:left;
	padding: 5px;
	width:18%;
	}
	
#left h1, #right h1 {
	font-size:15px;
	padding-top:5px;
	font-family:helvetica, arial, georgia, times, sans-serif;
	border-bottom:1px dotted #c4c4c4;
}

#left p {
	font-size:10px;
	padding-bottom:10px;
	margin-top:-3px !important; /*****  FIREFOX  *****/
	margin-top:-14px;             /***** INTERNET EXLORER *****/
	color:#404040;
}	
/************************** MAIN CONTENT IN MIDDLE ******************/

#middle {
       float:left;
	width:54%;
	line-height:1.01em;
	padding-left:3.5%;
	padding-right:3.5%;
}
	
#middle p, p {
	font-size:10px;
	color:#404040;
}

#middle h1 {
	font-family:"Century Gothic", verdana, arial, times, sans-serif;
	font-size:21px;
	font-weight:normal;
	border-bottom:1px solid #c4c4c4;
	padding-bottom:3px;
	margin-top:24px;
}
/***************************  RIGHT COLUMN  *********************/
#right {
       float:left;
	padding-top: 5px;
        margin-left: -15px;
	font-size:11px;
	width:18%;
	line-height:1.6em;
}

#right a {
	line-height:2em;
	
}

#right br {
	line-height:0.7em;
}
Heidenreich12 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-04-2006, 12:20 AM Re: CSS 3 Column Fluid Layout - Works in Everything but IE 6
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
You need to take into account that padding is part of the overall with

so...

#left {float:left; padding: 5px; width:18%;}

= 18% +5px + 5px

Last edited by blue-dreamer; 10-04-2006 at 12:22 AM..
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 10-04-2006, 01:15 AM Re: CSS 3 Column Fluid Layout - Works in Everything but IE 6
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I agree that the issue is likely in the widths of the three columns. When I've done 3 column layouts I'll usually specify the right and left columns in px and just let the middle column fill the rest.

I think the case here is when you add up all the widths including the paddings and borders and anything else IE adds in there you'll find it's two wide for the overall wrapper and has not choice, but to drop down too low. Try reducing the widths and see if that fixes things.

By the way the design looks really nice in Firefox.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-04-2006, 03:42 PM Re: CSS 3 Column Fluid Layout - Works in Everything but IE 6
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Your #middle is too wide, basically. Put a temporary 1px red border around it and you'll see it. IE doesn't do it correctly !

IE's box model is broken, so you must adjust for that:

http://www.positioniseverything.net/ie-primer.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS 3 Column Fluid Layout - Works in Everything but IE 6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.06050 seconds with 12 queries