/    Sign up×
Community /Pin to ProfileBookmark

Background image trouble

Hi there. I am new and would like some help with this one problem.

As shown in the picture below, I want my footer, to extent all the way to the edge of my browser window. However I do not know how to do it. If anybody knows of a way, please tell me. Thanks!

[URL=http://img132.imageshack.us/i/41780101.jpg/][IMG]http://img132.imageshack.us/img132/6162/41780101.jpg[/IMG][/URL]

Here is the code, just in case.

[CODE]#footer {
background-image:url(images/bg_footer.jpg);
background-repeat:repeat-x;
background-color:#000;
min-height:130px;
padding:40px;
position:relative;
top:400px;
font-family:Verdana, Geneva, sans-serif;
font-size:10px;
}

.footer_column {
float:left;
margin-right:30px;
width:120px;
}

#footer.long {
width:610px;
}

#footer h3 {
color:E2DDDC;
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
line-height:21px;
text-transform:uppercase;
margin:10px 0 5px;
}

.footer_column ul li, .footer_column ul {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0px;
padding:0px;
}[/CODE]

Thanks in advance.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@god0fgodJun 18.2009 — Well, CSS2 is really annoying when it comes to image backgrounds. I think the 40px padding is preventing it reaching the sides and it wont stretch to the bottom without a y direction repeat and repeating isn't what most people want. They want a stretch.

The image is just black? Why not use a background colour? I'm guessing it's just a test image.

You can make background images with src but I can't get it to work myself. I've had a look at this but it didn't help - http://webdesign.about.com/od/css3/f/blfaqbgsize.htm Might help you.
Copy linkTweet thisAlerts:
@David_HarrisonJun 21.2009 — Need to see the whole code, including HTML.
×

Success!

Help @Ellipsis07 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.19,
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,
)...