/    Sign up×
Community /Pin to ProfileBookmark

html/CSS background image not working?

Ok, Im really confused why this wont work.

Here is my hierarchy

root

index.html
Css > default.css
images > all of my images

Here is my CSS

[CODE]/*RESET*/

html, body, div, span,
h1, h2, h3, h4, h5, h6, p,
a, em, font, img,
dl, dt, dd, ol, ul, li,
{
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}

/*Main Styles*/

html {
background: url(../images/bg.gif) repeat;
}[/CODE]

For some strnage reason the background doesn’t display at all.. IM confused.

I’m using the firebug plugin to edit it while in my browser, the image appaered for a short moment and then disappaered again.

Any ideas?

Thanks

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@NerdygeekauthorJun 22.2009 — I cahnged the realtive url path to images/bg.gif and it worked.

But thats confusing me more because of my hierarchy.

CSs is flawless right? lol
×

Success!

Help @Nerdygeek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...