...

View Full Version : text to bottom of div



dswimboy
12-01-2005, 06:09 AM
I have a <div> with a defined height (absolute) and width (page percentage). I want text to be at the bottom of the div. if the window is decreased, i want the text to wrap, but remain in the div. how?

stripped down example: other <div>s with widths are stacked up on the right, too.


<html>
<head>
<STYLE>
div.one {
background-color:yellow;
width:15%;
height:100px;
text-align:center;
}
</STYLE>
</head>
<body>
<div class="one">Hello, This is the World</div>
</body>
</html>

_Aerospace_Eng_
12-01-2005, 06:13 AM
You'll need to put the text in a span, make the span position:absolute;bottom:0;left:0; you will also need to the make the div that contains the span position:relative;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum