Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Box 1

Status
Not open for further replies.

DrySnot

Technical User
Nov 29, 2007
46
0
0
I am trying to make the background always go down to the bottom of the page.

Using css is there a way to make the image have a variable heights.

I would like the bottom of the image to always be about an inch from the bottom of the page once it scrolls all the way to the bottom.

and
see how on the contacts page it doesn't stretch to the bottom?

Whats that called or how do I do it?

Thanks

DrySnot: Job Forums, Resume Help Forums, and Interview Advice Forums.
 
You mean you want your background to stretch the length of the page when the page is longer than the image you're using? No, you cannot do that. You would need to use a repeating background that is just the sides as the background to your main area and then the curved bottom as a footer.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
I think I just need to put in class tags or something.

This is what I have so far but the bottombg and topbg are not showing up.

Is there something I have to do to get .headbg and .footerbg to work with my html code?

This is my style sheet

body {
font-family: "Times New Roman", Times, serif;
background-color: #282828;
color: #CCCCCC;
background-image: url(../myimages/middlebg.jpg);
background-repeat: repeat-y;
background-position: center center;
}
.headbg {
background-image: url(../myimages/topbg.jpg);
background-repeat: no-repeat;
background-position: center top;
}
.footerbg {
background-image: url(../myimages/bottombg.jpg);
background-repeat: no-repeat;
background-position: center bottom;
}

DrySnot: Job Forums, Resume Help Forums, and Interview Advice Forums.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top