gwmbox
01-10-2008, 11:55 PM
Hi guys
Having an issue with some code that I need help with. Works with Firefox but not with IE.
HTML
<body>
<!-- Lets wrap all the content -->
<div align="center">
<div id="wrapper">
<!-- Build the Header -->
<div id="header">
<div id="headertitle"><img src="includes/images/headertitle.jpg" alt="Darksky Alaskan Malamutes" name="Darksky Alaskan Malamutes" id="Darksky Alaskan Malamutes" width="841" height="113" border="0"></div>
<div id="headerright"></div>
</div>
</div>
</div>
</body>
Now the CSS
/* Base Styles */
body
{
font: 62.5%/1.5 Verdana, Geneva, Arial, Helvetica, sans-serif;
background-image: url(../images/bg.png);
margin: 0px;
padding: 0px;
}
#wrapper
{
width: 85%;
background-color: #FFFFFF;
max-width: 1280px;
min-width: 880px;
text-align: left;
}
h1
{
font-size: 2.2em;
}
h2
{
font-size: 2.0em;
}
h3
{
font-size: 1.8em;
}
h4
{
font-size: 1.6em;
}
h5
{
font-size: 1.4em;
}
p
{
font-size: 1.2em;
}
/* Floats */
.clear
{
clear:both;
}
.right
{
float: right;
}
.left
{
float: left;
}
/* Header */
#header {
width: 100%;
margin: 0px 0px 0px 0px;
}
#headertitle {
width: 841px;
float: left;
margin: 0px 0px 0px 0px;
}
#headerright {
background-image: url(includes/images/headerrightback.jpg);
background-position: left;
background-repeat: no-repeat;
background-color: #110138;
margin-left: 841px;
position: relative;
height: 113px;
padding: 0px 0px 0px 0px;
}
What I am having trouble with is in IE there is a small white space between the main header image and the right hand side background - here is an image of it
http://dgshosting.com.au/images/IEgap.png
- I cannot work out how to remove it - please help :)
Having an issue with some code that I need help with. Works with Firefox but not with IE.
HTML
<body>
<!-- Lets wrap all the content -->
<div align="center">
<div id="wrapper">
<!-- Build the Header -->
<div id="header">
<div id="headertitle"><img src="includes/images/headertitle.jpg" alt="Darksky Alaskan Malamutes" name="Darksky Alaskan Malamutes" id="Darksky Alaskan Malamutes" width="841" height="113" border="0"></div>
<div id="headerright"></div>
</div>
</div>
</div>
</body>
Now the CSS
/* Base Styles */
body
{
font: 62.5%/1.5 Verdana, Geneva, Arial, Helvetica, sans-serif;
background-image: url(../images/bg.png);
margin: 0px;
padding: 0px;
}
#wrapper
{
width: 85%;
background-color: #FFFFFF;
max-width: 1280px;
min-width: 880px;
text-align: left;
}
h1
{
font-size: 2.2em;
}
h2
{
font-size: 2.0em;
}
h3
{
font-size: 1.8em;
}
h4
{
font-size: 1.6em;
}
h5
{
font-size: 1.4em;
}
p
{
font-size: 1.2em;
}
/* Floats */
.clear
{
clear:both;
}
.right
{
float: right;
}
.left
{
float: left;
}
/* Header */
#header {
width: 100%;
margin: 0px 0px 0px 0px;
}
#headertitle {
width: 841px;
float: left;
margin: 0px 0px 0px 0px;
}
#headerright {
background-image: url(includes/images/headerrightback.jpg);
background-position: left;
background-repeat: no-repeat;
background-color: #110138;
margin-left: 841px;
position: relative;
height: 113px;
padding: 0px 0px 0px 0px;
}
What I am having trouble with is in IE there is a small white space between the main header image and the right hand side background - here is an image of it
http://dgshosting.com.au/images/IEgap.png
- I cannot work out how to remove it - please help :)