View Full Version : css background image

03-31-2011, 02: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.


<link rel="stylesheet" type="text/css" href="style/header.css"/>
<!-- Header -->
<div id="header">
<!-- Strip Section -->
<div id="strip_section">
<div id="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?

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

04-01-2011, 01: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').