WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > Boxes displaying weirdly in IE

Reply
  Thread Tools Display Modes
Old 30th June 12, 04:47 PM   #1
Bluefishy
WLC Member
 
Bluefishy's Avatar
 
Join Date: Jun 2012
Posts: 4
Default Boxes displaying weirdly in IE

Hello, I'm pretty new to the CSS world, so please excuse my inexperience. I am working on a site with a wrapper that holds three boxes in the footer. When I view these in Firefox everything looks perfect, but the boxes aren't nicely centered in IE9. I have absolutely no idea how to resolve this and would greatly appreciate any help you could offer.

Here's the link, I'm referring to the content in the dark gray box at the bottom:
http://kaoud.businesscatalyst.com/

The css is as follows:

.base_1 {
background-color: #292929;
width: 1008px;
font-size: 16px; font-weight: bold; color: #ffffff; text-align: left;
clear: both;
}

.wrapper {
width: 1008px;
margin: 0 auto;
overflow: hidden;
position: relative;
padding-left: 20;
padding-right: 20px;
}

.box2 {
width: 275px;
height: 200px;
padding-left: 20px;
padding-right: 20px;
padding-top: 20px
padding-bottom: 520px;
margin-left: 10px;
margin-bottom: 10px;
float: left;
display: inline;
padding: 20px;
}




And the HTML:


<div class="base_1">
<div class="wrapper">
<div class="box2">
More Information<br />
<br />
<a href="#">Shop at home with Kaoud</a><br />
<br />
<a href="#">Kaoud TV &ndash; Safe &amp; Beautiful Stairs</a><br />
<br />
<a href="#">Kaoud TV &ndash; The Kaoud Label</a><br />
<br />
<a href="#">Kaoud TV &ndash; Bring Out The Best 1</a><br />
<br />
<a href="#">Kaoud TV &ndash; Bring Out The Best 2</a><br />
<br />
</div>
<div class="box2">
<img alt="" src="/images/extrememakeover.jpg" />
</div>
<div class="box2">
Kaoud Oriental Rug Locations<br />
<br />
<a href="#">- West Hartford, CT</a><br />
<br />
<a href="#">- Manchester, CT</a><br />
<br />
<a href="#">- Canton, CT</a><br />
<br />
<a href="#">- Holyoke, MA</a><br />
<br />
</div>
</div>
</div>
Bluefishy is offline   Reply With Quote
Old 30th June 12, 07:16 PM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Boxes displaying weirdly in IE

How can an element be "centred" when it is the same width as the parent element.
chrishirst is offline   Reply With Quote
Old 30th June 12, 09:34 PM   #3
Bluefishy
WLC Member
 
Bluefishy's Avatar
 
Join Date: Jun 2012
Posts: 4
Default Re: Boxes displaying weirdly in IE

Well, I guess I don't want it all centered, I just want it to be lined up so that there's an equal distance between the two boxes on each both sides of the footer. In IE it's all smooshed to the left side.
Bluefishy is offline   Reply With Quote
Old 1st July 12, 01:18 AM   #4
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,134
Default Re: Boxes displaying weirdly in IE

Set your HTML order to:
[Left box]
[Right box]
[Middle box]

Then float left and right respectively, (Remove display:inline) And with the center box, margin left and right should be set to auto.
__________________
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
Old 1st July 12, 01:02 PM   #5
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Boxes displaying weirdly in IE

Oh and use a valid doctype for IE
chrishirst is offline   Reply With Quote
Old 2nd July 12, 06:22 PM   #6
Bluefishy
WLC Member
 
Bluefishy's Avatar
 
Join Date: Jun 2012
Posts: 4
Default Re: Boxes displaying weirdly in IE

Thank you so much, I'm going to try all your suggestions and let you know how it goes, I really appreciate your help!!!
Bluefishy is offline   Reply With Quote
Old 11th July 12, 03:50 PM   #7
Bluefishy
WLC Member
 
Bluefishy's Avatar
 
Join Date: Jun 2012
Posts: 4
Default Re: Boxes displaying weirdly in IE

You are all super awesome, your advice worked really well, thank you so much!
Bluefishy 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 09:20 AM.



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.