Does someone know how I can position an element at the bottom of the surrounding element with css. I have a leftbar with 3 areas above each other, leftbarimage, leftbarcontent and contactinformation. Contactinformation should be positioned at the bottom. It should be in line with the bottom of the contentarea (see code).
This is the code:
This is the css-code I use:
I hoped vertical-align: bottom; (in #contactinformation) would do the job, but it doesn't. I hope someone can help me with this.
Gert
This is the code:
Code:
<div id="secondpart">
<div id="leftbar">
<div id="leftbarimage"><img src="images/masseur.jpg" width="173"></div>
<div class="leftbarcontentregular" id="leftbarcontent">
<p>"Hier komen de korte links"</p>
<p>"En nog een link"</p>
<p>"Wat is er nog verzekert in Fysiotherapieland" </p>
</div>
<div id="contactinformation">
<span class="contactinformationregular">
<strong>Contact</strong>
</span><br>
<span class="contactinformationregular">
blablala<br>
fdfdf<br>
dfdf<br>
4343434<br>
</span>
</div>
</div>
<div id="contentarea">
<p>Does someone know how I can position an element at the bottom of the surrounding element with css. I have a leftbar with 3 areas above each other, leftbarimage, leftbarcontent and contactinformation. Contactinformation should be positioned at the bottom. It should be in line with the bottom of the contentarea (see code).</p>
</div>
</div>
This is the css-code I use:
Code:
#secondpart {
height:100%;
}
#leftbar {
margin: 0px;
padding: 0px;
width: 173px;
float: left;
height: 100%;
}
#leftbarcontent {
padding:12px;
}
.leftbarcontentregular {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:80%;
font-style: italic;
}
#contactinformation {
background-color:#333333;
padding:12px;
vertical-align: bottom;
}
.contactinformationregular {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 70%;
color: #CCCCCC;
}
#contentarea {
float: left;
margin: 12px;
height: 100%;
}
I hoped vertical-align: bottom; (in #contactinformation) would do the job, but it doesn't. I hope someone can help me with this.
Gert