SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
-
Sep 8, 2007, 11:47 #1
- Join Date
- Apr 2007
- Posts
- 690
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How can you force a background to appear in the footer?
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?
-
Sep 8, 2007, 20:46 #2
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Sep 8, 2007, 23:32 #3
- Join Date
- Apr 2007
- Posts
- 690
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
can you do something liKe:
position: absolute; bottom: 0px; left: 0px;
-
Sep 9, 2007, 00:00 #4
-
Sep 9, 2007, 01:49 #5
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Sep 9, 2007, 10:10 #6
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
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
Bookmarks