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
IE problem (relatively small code)
Old 06-22-2008, 04:43 PM IE problem (relatively small code)
Sneakyheathen's Avatar
Ultra Talker

Posts: 346
Name: Corey Freeman
Trades: 0
So it works fine in firefox, but it's messed up in IE. (the main and sidebar columns don't align right) Here's the CSS

Code:
body {
background: #0E285C;
}

#container {
background: #F8FBFF;
margin-left: auto;
margin-right: auto;
width: 870px;
overflow: hidden;
border: 1px solid black;
}

#header {
height: 120px;
min-width: 800px;
clear: both;
padding-left: 10px;
border-bottom: 1px solid #ccc;
}

.logo {
float: left;
display: inline;
}

.ad {
float: right;
width: 468px;
height: 60px;
margin-top: 20px;
margin-right: 5px;
border: 1px solid #ccc;
background: blue;
display: inline;
}

#content {
min-width: 850px;
overflow: hidden;
}

#sidebar {
min-width: 300px;
padding: 10px;
margin: auto;
float: right;
height: 500px;
position: relative;
}

#main {
min-width: 529px;
border-right: 1px solid #ccc;
height: 500px;
float: left;
padding: 10px;
position: relative;
margin: auto;
}

#footer {
border-top: 1px solid #Ccc;
clear: both;
}

#categories {
float: left;
width: 269px;
height: 200px;
padding: 10px;
border-right: 1px solid #ccc;
margin: auto;
position: relative;
}


#recent {
float: left;
width: 269px;
height: 200px;
padding: 10px;
margin: auto;
position: relative;
border-right: 1px solid #ccc;
}

#about {
float: left;
padding: 10px;
width: 270px;
height: 200px;
margin: auto;
position: relative;
}

And here's the html output

Code:
<body>
    <div id="container">
<div id="header">
<div class="logo">
<img src="../wp-content/themes/design/images/ddlogo.png" alt="Diligent Design" />
</div>
<div class="ad">
Your ad here!
</div>
</div><div id="content"><div id="sidebar">
</div><div id="main">
</div>
</div>
<div id="footer">
     <div id="categories">
     </div>
     <div id="recent">
     </div>
     <div id="about">
     </div>
</div>
</div>
</body>
Any suggestions?
__________________

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

Please login or register to view this content. Registration is FREE
Sneakyheathen is offline
Reply With Quote
View Public Profile Visit Sneakyheathen's homepage!
 
 
Register now for full access!
Old 06-22-2008, 05:06 PM Re: IE problem (relatively small code)
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
IE6 doesn't support min/max width/height. You have to feed IE a fixed width using conditional comments and a separate css file just for the 'fixes' - OR, you use percentages for you widths if you're trying to get a fluid layout.
__________________
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
 
Old 06-22-2008, 07:37 PM Re: IE problem (relatively small code)
Sneakyheathen's Avatar
Ultra Talker

Posts: 346
Name: Corey Freeman
Trades: 0
Thanks, I changed it to fixed, so I think it'll be fine now.
__________________

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

Please login or register to view this content. Registration is FREE
Sneakyheathen is offline
Reply With Quote
View Public Profile Visit Sneakyheathen's homepage!
 
Reply     « Reply to IE problem (relatively small code)
 

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 0.20656 seconds with 12 queries