...

View Full Version : Resolved css background image not showing up



calebandchels
01-23-2012, 07:17 PM
I can't seem to get my background image to show in my header. It's simple enough I have done it 96279587981273452 times but for some reason it's not showing. Is there an obvious mistake I have? the site is at http://www.hardwearclothing.net/lotus


header {
float: left;
clear: left;
width: 200px;
height:175px;
background-image:url("images/header_bg.png");
}

<header>
<img src="images/logo.png" alt="Lotus Lounge Club in Pensacola" />
</header>

Excavator
01-23-2012, 07:24 PM
Hello calebandchels,
This might work better for you -
header {
background-image: url("../images/header_bg.png");
clear: left;
float: left;
width: 200px;
}

See absolute and relative paths explained here (http://www.webdiner.com/webadv/begin/paths.htm).

calebandchels
01-23-2012, 07:25 PM
Hello calebandchels,
This might work better for you -
header {
background-image: url("../images/header_bg.png");
clear: left;
float: left;
width: 200px;
}

See absolute and relative paths explained here (http://www.webdiner.com/webadv/begin/paths.htm).

I feel dumb...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum