Bingo X
02-08-2005, 03:23 PM
I'm hoping this has a simple fix, but suspect it might need some IE hack.
The website I recently designed has an empty div in the HTML that, ideally, should be formatted with CSS to include an image. The code below works great on all Mac browsers, but chokes in IE PC - it doesn't appear.
The website is LandWorks (http://www.landworksvt.com)
<div id="imagebar" class="img-portfolio"></div>
The class changes depending on the section of the site.
#imagebar {
z-index: 1;
position: relative;
width:688px;
height:85px;
margin: 93px 0 0 0;
padding: 0;
}
#imagebar.img-home {background-image: url(../images/img_01.gif);}
#imagebar.img-company {background-image: url(../images/img_02.gif);}
#imagebar.img-capabilities {background-image: url(../images/img_03.gif);}
#imagebar.img-portfolio {background-image: url(../images/img_04.gif);}
#imagebar.img-contact {background-image: url(../images/img_05.gif);}
#imagebar.img-client {background-image: url(../images/img_06.gif);}
The image should display like this: http://www.landworksvt.com/IE_MAC_screenshot.gif
(http://www.landworksvt.com/IE_MAC_screenshot.gif )
I've tried changing the positioning/ making it a float, but that seems to mess things up in Mac browsers.
Any help would be great!
Thanks!
The website I recently designed has an empty div in the HTML that, ideally, should be formatted with CSS to include an image. The code below works great on all Mac browsers, but chokes in IE PC - it doesn't appear.
The website is LandWorks (http://www.landworksvt.com)
<div id="imagebar" class="img-portfolio"></div>
The class changes depending on the section of the site.
#imagebar {
z-index: 1;
position: relative;
width:688px;
height:85px;
margin: 93px 0 0 0;
padding: 0;
}
#imagebar.img-home {background-image: url(../images/img_01.gif);}
#imagebar.img-company {background-image: url(../images/img_02.gif);}
#imagebar.img-capabilities {background-image: url(../images/img_03.gif);}
#imagebar.img-portfolio {background-image: url(../images/img_04.gif);}
#imagebar.img-contact {background-image: url(../images/img_05.gif);}
#imagebar.img-client {background-image: url(../images/img_06.gif);}
The image should display like this: http://www.landworksvt.com/IE_MAC_screenshot.gif
(http://www.landworksvt.com/IE_MAC_screenshot.gif )
I've tried changing the positioning/ making it a float, but that seems to mess things up in Mac browsers.
Any help would be great!
Thanks!