...

View Full Version : css background image



Aurora.Light
03-31-2011, 01:52 AM
hey guys. simple question

i have a header "strip" image that doesn't show up. without all the nesting in DIVs, the image renders correctly, however it doesn't with.

home.html

<html>
<head>
<link rel="stylesheet" type="text/css" href="style/header.css"/>
</head>
<body>
<!-- Header -->
<div id="header">
<!-- Strip Section -->
<div id="strip_section">
<div id="logo">
</div>
</div>
</div>
</body>
</html>

--------
header.css

#logo
{
width: 403px;
height: 138px;
background-image: url('images/header_logo.png');
}

the images and files are nested correctly, so I don't understand what's the problem.

POSSIBLY is my css wrong?

BoyWander
03-31-2011, 07:59 AM
Try putting " instead of ' around the url - use double quotes instead of single quotes?

Aurora.Light
04-01-2011, 12:44 AM
eh? i didnt think it mattered

EDIT: yeah stupid me I nested it wrong. when you have a css stylesheet, the image has to be url('style/images/blank.png').



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum