View Full Version : Placing footer using CSS
johnson207
09-13-2006, 10:40 PM
Hi, i have a graphic which i wish to place at the bottom of all of my pages, this will be variable due to variable amounts of content, how can i do this using HTML + CSS? (ie div tags)
is there anyway to set up 3 divs:
header
content
footer
so they simply follow on
Sayonara
09-13-2006, 10:42 PM
"clear:both" usually does the trick.
johnson207
09-16-2006, 09:01 PM
cheers mate that shud help :p will let u know if it works soon
and.,...which div do i put it in??
vinny388
09-17-2006, 09:24 AM
Something along the lines of :
<div id="header">content</div>
<div id="content">content</div>
<div id="footer">content</div>
You shouldn't need the "clear:both" css code for a simple "header, content and footer" layout (if you had a sidebar next to your content div then yes).
mark87
09-17-2006, 10:48 AM
DIV's are a block element anyway, they will automatically follow eachother unless they are floated. Vinny388's example will work fine.
vinny388
09-17-2006, 11:38 AM
WOW! I got something right! :thumbsup: lol
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.