![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Jun 2012
Posts: 4
|
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 – Safe & Beautiful Stairs</a><br /> <br /> <a href="#">Kaoud TV – The Kaoud Label</a><br /> <br /> <a href="#">Kaoud TV – Bring Out The Best 1</a><br /> <br /> <a href="#">Kaoud TV – 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> |
|
|
|
|
|
#2 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
How can an element be "centred" when it is the same width as the parent element.
|
|
|
|
|
|
#3 |
|
WLC Member
Join Date: Jun 2012
Posts: 4
|
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.
|
|
|
|
|
|
#4 |
|
WLC Mod
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,134
|
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. |
|
|
|
|
|
#5 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
Oh and use a valid doctype for IE
|
|
|
|
|
|
#6 |
|
WLC Member
Join Date: Jun 2012
Posts: 4
|
Thank you so much, I'm going to try all your suggestions and let you know how it goes, I really appreciate your help!!!
|
|
|
|
|
|
#7 |
|
WLC Member
Join Date: Jun 2012
Posts: 4
|
You are all super awesome, your advice worked really well, thank you so much!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|