Log in

View Full Version : footer div



Bennelliott
04-29-2007, 03:57 PM
Hey all,
I've put a div at the bottom of all my pages to use as a footer, but it won't stretch right across the screen (leaves a small margin/border at the left and right and underneath). I've tried putting "margin: 0 0 0 0; padding: 0 0 0 0" in the css, but to no avail. Here's the css:
.footer { background-color: #FFFFAA; border-top: 1px solid #00329B; border-bottom: 1px solid #00329B }

Any ideas?
TYVM in advance :p

Bennelliott
04-29-2007, 04:03 PM
heres the html in the pages:
<div align="center" class="footer">

Bennelliott
04-29-2007, 04:31 PM
done it for myself lol, just put margin: 0 0 0 0 in the body style in the css.

boxxertrumps
04-29-2007, 07:28 PM
.footer { background-color: #FFFFAA; border-top: 1px solid #00329B; border-bottom: 1px solid #00329B; margin:-8px;}
body {margin:0; padding:8px;}

dont use the align attribute. use CSS.