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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

footer width

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I have a page header and content have a good width, fill the window and respect a margin. I set the footer now on absolute to the div of the content. Problem. The footer div is as width as is text and this is less width as the header and content
Code:
-- header  -- width ok
-- content -- width ok
-- foot-- width to the text in it

Code:
#footer
{
position:absolute;
width:94%;  not ok
margin : 0px 20px 0px 20px;	
padding: 5px;
}

How to set the footer as width as the header and content ?
 
You have set the width to 94% of the total width so it will be narrower than the container or page.
Why are you using a position?
Let it just sit at the end of the page where it belongs.

Keith
 
If I use 100% it is going out of the screen, because he start at the left point of the div content (margin-left 20px)

The book css Anthology suggest to use position aboslute so it comes right after the div content.

I will do some test without position absolute
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top