Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Float to bottom


rainborick - 6:54 am on Oct 21, 2012 (gmt 0)


There are other options. It depends a bit on how the whole thing is structured.

For example, if you can work with fixed heights you could try:

<!DOCTYPE html>
<html>
<head>
<title>Bottom Alignment</title>
<style type="text/css">

* { margin:0; padding:0; }
html { position:relative; top:0; left:0; width:100%; height:100%; }
body { position:relative; top:0; left:0; width:100%; height:100%; font-family:arial,helvetica,sans-serif; font-size:80%; background-color:lightblue; }
h1 { font-family:georgia,serif; font-style:italic; font-weight:bold; text-align:center; }

#wrapper { width:980px; height:100%; margin:0 auto; background-color:#ffffd7; }
#container { width:610px; height:410px; margin:0 auto; border:solid 1px #000; }

.columnBox { float:left; position:relative; top:0; left:0; width:192px; height:400px; margin-top:4px; margin-left:2px; padding:1px 3px; border:solid 1px red; }
.fixBottom { position:absolute; bottom:0; left:0; }

</style>
</head>
<body>
<div id="wrapper">
<h1>Bottom Alignment</h1>
<br />
<div id="container">
<div class="columnBox">
<p>Column One</p>
</div>
<div class="columnBox">
<p>Column Two</p>
</div>
<div class="columnBox">
<p>Column Three</p>
<p class="fixBottom">You can use position:absolute to move an element to the bottom of its containing element,
even if you &quot;float&quot; it, if you also set the containing element's position property.
</p>
</div>

</div><!-- end #container -->

</div><!-- end #wrapper -->
</body>
</html>


Thread source:: http://www.webmasterworld.com/css/4510166.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com