Here's the website I'll be discussing:
http://asilenttreatment.org/JPRedesign/jpredesigntempnewhead.htmlIt calls 2 CSS sheets:
http://asilenttreatment.org/JPRedesign/home.csshttp://asilenttreatment.org/JPRedesign/jpstyle.cssAt the risk of revealing to you dogs the company at which I work, I needs a hand. I'm trying to bring the site up to compliance with IE, but I'm having a hell of a time. I have two major problems: In IE, my content wrapping div WILL NOT CENTER FOR LOVE OR MONEY. It always hangs on the left- I'm supposing this is an issue with inherited values. I was told to do:
#contentwrap {
width: 760px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
And that seemed to work for awhile. But no longer, not since I tried to merge my IE style sheet and my Firefox stylesheet.
The second problem is that I'm using a Sprite-based image replacement for my upper nav bar (And, yes, I know- I fucked one of them up. This is just quick and dirty, I'll pass it along to the art guy when it's ready). The nav bar is split into two DIV containers- One for the upper elements and one for the lower. In Firefox this works fine, in IE it places a small white space inbetween the two DIVs. Here's the code for that:
<div id="headerspace">
<div id="tmenuhead">
<img src="img/tmheader.jpg">
</div>
<div id="tmenumenu"> <!-- WHY IS THERE A GAP BETWEEN THE ELEMENTS?! WHY OH WHY. Maybe this is why they use lists. -->
<ul>
<li id="tmhome"><a href="jpredesigntempnewhead.html">HOME</a></li>
<li id="tmfaq"><a href="faq.html">FAQ</a></li>
<li id="tmcontact"><a href="contact.html">CONTACT</a></li>
</ul>
</div>
<div id="lmenu">
<ul>
<li id="lmproducts"><a href="productdisplay.html">PRODUCTS</a></li>
<li id="lmrjapan"><a href="retailjapan.html">RETAIL JAPAN</a></li>
<li id="lmnutrition"><a href="nutrition.html">NUTRITION</a></li>
<li id="lmblog"><a href="blog.html">BLOG</a></li>
<li id="lmrecipes"><a href="recipedisplay.html">RECIPES</a></li>
</ul>
And the relevant CSS:
#headerspace {
margin: 20px 0px 0px 0px;
width:770px;
height:100px;
}
#headerspace h1 {
display: block;
float: left;
text-align:-9999px;
}
/* Classes for the re-assembly of the upper and lower menus */
#tmenuhead{
width:507px;
height: 70px;
float:left;
}
#tmenumenu{
width:253px;
height:70px;
float:left;
background: #4494d1;
}
#tmenu li{
float:left;
height: 50px;
}
#tmhome,#tmfaq,#tmcontact{
text-indent:-9999px;
float:left;
}
#tmhome a{
display: block;
height: 69px;
width:68px;
text-decoration:none;
background: url(img/tmhome.jpg) no-repeat;
}
#tmfaq a{
display: block;
height: 69px;
width:54px;
text-decoration:none;
background: url(img/tmfaq.jpg) no-repeat;
}
#tmcontact a{
display: block;
height: 69px;
width:131px;
text-decoration:none;
background: url(img/tmcontact.jpg) no-repeat;
}
#tmhome a:hover{background: url(img/tmhome.jpg) no-repeat 0 -69px;}
#tmfaq a:hover{background: url(img/tmfaq.jpg) no-repeat 0 -69px;}
#tmcontact a:hover{background: url(img/tmcontact.jpg) no-repeat 0 -69px;}
#lmenu{
width:760px;
height:30px;
background: #4494d1;
}
#lmenu li{
float:left;
height: 30px;
}
#lmproducts,#lmrjapan,#lmnutrition,#lmblog,#lmrecipes{
text-indent:-9999px;
float:left;
}
#lmproducts a{
display: block;
height: 30px;
width:149px;
text-decoration:none;
background: url(img/lmproducts.jpg) no-repeat;
}
#lmrjapan a{
display: block;
height: 30px;
width:203px;
text-decoration:none;
background: url(img/lmrjapan.jpg) no-repeat;
}
#lmnutrition a{
display: block;
height: 30px;
width:171px;
text-decoration:none;
background: url(img/lmnutrition.jpg) no-repeat;
}
#lmblog a{
display: block;
height: 30px;
width:99px;
text-decoration:none;
background: url(img/lmblog.jpg) no-repeat;
}
#lmrecipes a{
display: block;
height: 30px;
width:137px;
text-decoration:none;
background: url(img/lmrecipes.jpg) no-repeat;
}
#lmproducts a:hover{background: url(img/lmproducts.jpg) no-repeat 0 -30px;}
#lmrjapan a:hover{background: url(img/lmrjapan.jpg) no-repeat 0 -28px;}
#lmnutrition a:hover{background: url(img/lmnutrition.jpg) no-repeat 0 -30px;}
#lmblog a:hover{background: url(img/lmblog.jpg) no-repeat 0 -30px;}
#lmrecipes a:hover{background: url(img/lmrecipes.jpg) no-repeat 0 -30px;}
IE is also tossing some crazy margins on the bottom of the big promo tile, but I'll tide those up. These are the two major issues that are glaringly obvious. Thanks!