By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,778 Members | 1,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,778 IT Pros & Developers. It's quick & easy.

container not centering

P: 2
I know this has been dealt with in previous posts, but i am having a problem with centering the following layout. Can anybody spot where I am going wrong? Thanks!

body {
text-align:center;
margin-left:auto;
margin-right:auto;
font-color:#ffffff;
}

#wrapper
{
text-align:center;
width:732;
}

#navImg
{
float:left;
border-width: 0px 1px 0px 0px;
border-style:solid;
border-color:#ffffff;
}

#imgtitle
{
float:left;
background-color:#ffffff;
border-width: 1px 0px 0px 0px;
border-style:solid;
border-color:#ffffff;
}

#imgspacer
{
background-color:#000000;
}

#clear
{
clear:both;
}


/* hide from MacIE -- Hack to fix 3px margin on floats in IE \*/
* html #navImg {
margin-right: -3px;
}

* html #imgtitle {
margin-left: 3px;
}

/* end hide */


-->
</style>
</head>
<body>
<div id="wrapper">
<div id="navImg"><img src="img1"></div>
<div id="topimage"><img src="img2"></div>
<div id="imgtitle"><img src="img3 src="images/spacer.gif" width="1"><img src="img4"></div>
</div>
</body>
</html>
Oct 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: 2
DISREGARD. I finally figured it out. I'm an idiot.
Oct 5 '06 #2

10K+
P: 13,264
DISREGARD. I finally figured it out. I'm an idiot.
Do not be so hard on yourself my friend. The more mistakes one discovers, the better he becomes
Oct 5 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.