|
Header Image wont display as intended in IE
Ive wasted two days trying to figure this out for some reason my header image wont display in IE, this is a relatively basic template too. ANy help would be greatly appreciated. FYI there is a background an overlay and then a banner, all being called from the database, in case your wondering why.. I have confirmed the URL paths are good. Firefox works fine too, Ive also tried inserting the image directly into the Header Div, with no luck.
Here is the css and index.php
THE CSS file got it from DW cs4
@charset "utf-8";
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #FFF;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 100%;
background-color: #414141;
background-image: url(/templates/ycre8/images/PAPERbackgroundfade.png);
background-repeat: no-repeat;
background-position: center top;
}
.twoColLiqLtHdr a {
color: #FFFFFF;
font-family: "Arial Black", Gadget, sans-serif;
}
a {
text-decoration: none;
font-family: "Arial Black", Gadget, sans-serif;
color:#FFFFFF; }
a:hover, a:focus {
color:#FFFFFF;
font-family: "Arial Black", Gadget, sans-serif;
text-decoration:underline; }
.thrColFixHdr #container {
width: 1066px;
text-align: left; /* this overrides the text-align: center on the body element. */
margin-top: 0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
.thrColFixHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 150px; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
}
.thrColFixHdr #mainContent {
margin-top: 0;
margin-right: 0px;
margin-bottom: 0;
margin-left: 0px;
padding-top: 0;
padding-right: 10px;
padding-bottom: 0;
padding-left: 10px;
}
.thrColFixHdr #footer {
text-align: center;
padding-top: 0;
padding-right: 0px;
padding-bottom: 0;
padding-left: 0px;
}
.thrColFixHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.topheader{
width: 100%;
height:inherit;
}
#topleft {
width: 50%;
float:left;
}
#topright {
width: 50%;
float:right;
}
#navleft {
width: 50%;
height:20px;
float:left;
}
#navright {
width: 50%;
height:20px;
float:right;
}
//front end index. php
#backcontainer{
background-image: url(<?php echo $base;?>/templates/ycre8/images/Backgrounds/<?php echo $load['0'];?>);
background-repeat: no-repeat;
background-position: center top;
padding-top: 143px;
}
#header {
background: transparent url(<?php echo $base;?>/templates/ycre8/images/Banners/<?php echo $load['1'];?>) no-repeat center top;
margin-right:auto;
margin-left:auto;
height: 176px;
width: 1066px;
z-index: 100;
}
#nav{
background: transparent url(<?php echo $base;?>/templates/ycre8/images/MainToolBar/MAINtoolbar.png) no-repeat center top;
height: 50px;
text-align: center;
text-transform: capitalize;
padding-top: 5px;
margin-right: auto;
margin-bottom: 0;
color:#CCC;
margin-left: auto;
margin-top: 10px;
}
</style>
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<?php if ( $my->id ) { initEditor(); } ?>
</head>
<body class="thrColFixHdr">
<div id="backcontainer">
<div id="container">
<div class="topheader">
<div id="header"></div>
<div id="navleft" align="left"><jdoc:include type="modules" name="inset" /></div>
<div id="navright" align="right"><jdoc:include type="message" /></div>
<div id="nav"><jdoc:include type="modules" name="top" /></div>
<!-- end #top --></div> <br class="clearfloat" />
<div class="main">
<?php if($this->countModules('user2')>0) { ?>
<div style="width: 100%; height: 5%; margin-left:auto; margin-right:auto; margin-top:0px; text-align:center; clear: both; vertical-align:top"><jdoc:include type="modules" name="user2" /></div><br class="clearfloat" />
<?php } ?>
<?php if($this->countModules('left')>0){ ?>
<div style="width: 20%; height: 100%; float: left; font-size: 11px;"><jdoc:include type="modules" name="left" /><!-- end #left sidebar1 --></div>
<?php } ?>
<div style="<?php echo $width;?>"> <jdoc:include type="component" />
<!-- end #mainContent --></div><!-- end #main --></div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<!-- end #footer --></div>
<!-- end #container --></div>
<!-- end .backcontainer --></div>
</body>
</html>
Last edited by Moneyshotkid; 02-21-2009 at 09:45 AM..
|