Here is the css I am currently using:
.stage{
width:960px;
background-image:url('stage.png');
background-position:bottom;
background-repeat:repeat-x;
min-height:400px;
float:left;
text-align:center;
}
This code places the background image at the bottom of the div, and centers the content. However, I am struggling to figure out how to position the content at the bottom of the div.
The width of the div is fixed, but I want the height to expand if the content inside is taller than the div. If the content is shorter, it should be aligned to the bottom.
I have come across examples that use multiple divs to achieve this, but I am wondering if there is a way to accomplish this with just one div in css? I do not want to nest another div at the bottom, all the content within the div should align to the bottom.
I wish there was a simple attribute like text-align:bottom;
for this purpose.