I've got two classes header and footer. They both have a 2px. border
to make it appear as a box on top and at the bottom of the page. They
both have a standard width (respecting the padding property).
Now I wanted the footer to always apear on the bottom of the page even
if there's a blank page with only header and footer.
So I set it to position:absolu te; bottom:12px; moving it to the
bottom. But now the width of the footer isn't the same anymore but
just as big as the text it contains.
To go round this I set it's width property to 100%. But now it only
respects padding on the left side and not on the right.
Any suggestions?
to make it appear as a box on top and at the bottom of the page. They
both have a standard width (respecting the padding property).
Now I wanted the footer to always apear on the bottom of the page even
if there's a blank page with only header and footer.
So I set it to position:absolu te; bottom:12px; moving it to the
bottom. But now the width of the footer isn't the same anymore but
just as big as the text it contains.
To go round this I set it's width property to 100%. But now it only
respects padding on the left side and not on the right.
Any suggestions?
Comment