Background picture dont fill out header space in IE
Posted: Fri Jan 12, 2007 2:34 pm
Howdy!
I don't know where I went wrong but..
My header looks great in FF but i IE (6) I get an empty line at the bottom of the picture (see http://stromstadss.se with IE)
I've been bending my brains about it but can't fix it. Someone who got an idea??
My code:
The stylesheet
/*****************
basic layout
*****************/
body {
background-color: #ccc;
color: #333;
margin:1em; /* gives some air for the pagewrapper */
}
/* center wrapper, min max width */
div#pagewrapper {
border: 1px solid black;
margin: 0 auto; /* this centers wrapper */
max-width: 80em; /* IE wont understand these, so we will use javascript magick */
min-width: 60em;
background-color: #fff;;
color: black;
}
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/
div#header {
height: 100px; /* adjust according your image size */
background-color: #000000;
}
div#header h1 a {
/* you can set your own image here */
background: #FFFFFF url(uploads/images/top-bg.jpg) no-repeat 0 0px;
display: block;
height: 100px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
div#search {
float: right;
width: 23em; /* enough width for the search input box */
text-align: right;
padding: 0.6em 0 0.2em 0;
margin: 0 1em;
}
The code
Template
{literal}
=b){nw=b+"px";}if(w
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
{/literal}
{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
{cms_selflink dir="start" text="$sitename"}
Any help would be deeply appreciated
Stig-s
I don't know where I went wrong but..
My header looks great in FF but i IE (6) I get an empty line at the bottom of the picture (see http://stromstadss.se with IE)
I've been bending my brains about it but can't fix it. Someone who got an idea??
My code:
The stylesheet
/*****************
basic layout
*****************/
body {
background-color: #ccc;
color: #333;
margin:1em; /* gives some air for the pagewrapper */
}
/* center wrapper, min max width */
div#pagewrapper {
border: 1px solid black;
margin: 0 auto; /* this centers wrapper */
max-width: 80em; /* IE wont understand these, so we will use javascript magick */
min-width: 60em;
background-color: #fff;;
color: black;
}
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/
div#header {
height: 100px; /* adjust according your image size */
background-color: #000000;
}
div#header h1 a {
/* you can set your own image here */
background: #FFFFFF url(uploads/images/top-bg.jpg) no-repeat 0 0px;
display: block;
height: 100px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
div#search {
float: right;
width: 23em; /* enough width for the search input box */
text-align: right;
padding: 0.6em 0 0.2em 0;
margin: 0 1em;
}
The code
Template
{literal}
=b){nw=b+"px";}if(w
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
{/literal}
{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
{cms_selflink dir="start" text="$sitename"}
Any help would be deeply appreciated
Stig-s