PDA

View Full Version : Resolved Positioning My Disclaimer



Joseph Witchard
Feb 10th, 2010, 01:30 AM
http://www.hogwarts-rpg.net/show_news/58

On some of my pages, the disclaimer div is positioned higher in the center div than I would like it to be. How would I make it where it's almost at the end of the center div, but still centers itself in the center div? The center div is 3210 pixels in height. This is my current code for disclaimer div:



#disclaimer {
width: 245px;
font-size: 8pt;
position: relative;
top: 500px;
margin: 0px auto;
text-align: center;
}

Excavator
Feb 10th, 2010, 03:49 AM
Hello Joseph Witchard,
I'm not too impressed with empty 3210px high layouts but you should be able to absolutely position your disclaimer to the bottom of it with this (or some variation) -

#disclaimer {
width: 245px;
font-size: 8pt;
position: absolute;
bottom: 100px;
left: 200px;
margin: 0px auto;
text-align: center;
}

Joseph Witchard
Feb 10th, 2010, 04:14 AM
That worked, thanks:) And the center div isn't that empty on every page, just some of them. The center div on the homepage in particular is pretty much full. Why do you say that? Does the div being empty affect performance real bad or something?