I want to have a black background on the page, and I only want it to be like 75px in height and cover up the whole footer from where it starts?
| SitePoint Sponsor |




I want to have a black background on the page, and I only want it to be like 75px in height and cover up the whole footer from where it starts?
Use background-repeat:repeat-x or background-repeat:no-repeat to make the image repeat horizontally only or not at all.
You can also use background-position to set where the background image is displayed.
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.




can you do something liKe:
position: absolute; bottom: 0px; left: 0px;
Sure, you can use absolute positioning if that's the affect you want to achieve. Your question wasn't very clear.
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


As Kravvitz said your question is a little ambiguous for use to give you the correct answer. Please provide detailed information so we can help you.
Remember that a footer is not an html or css element and only means something in the context of how you have coded it.
You may have a fixed positioned element as a footer or you may have an absolutely placed element as a footer or indeed you may just have a static footer that moves up and down with the flow of the page (not to mention my footer at the bottom of the window technique).
Therefore our answer would be different for every scenario of the above and one answer won't cover all eventualities.
You need to help us to help you![]()
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Bookmarks