jscheuer1, thanks for the reply.
But actually I've already tried height:100% and it didn't work.
Still it's the same layout, the DIV is only as long as the content.
It may be useful to post my code:
Style:
Code:
table#tblwindows{
width:440px;
}
table#tblwindows td{
background-color:#f0eded;
width:50%;
/*height:150px;*/
vertical-align:top;
padding:0px;
margin:0px;
border: solid 1px #d6d9d5;
}
table#tblwindows div.container{
position:relative;
height:100%;
padding:10px;
border: solid 1px blue;
}
table#tblwindows div.title{
font-size:12px;
font-weight:bold;
text-align:center;
color:Green;
}
table#tblwindows div.more {
background: url(Images/document.gif) no-repeat left 2px;
position:absolute;
bottom:10px;
left:10px;
text-align:left;
padding-left: 12px;
padding-bottom: 2px;
}
Markup:
Code:
<table border="0" cellspacing="10" id="tblwindows">
<tr>
<td>
<div class="container">
<div class="title">
articles
</div>
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
<div class="more">
<a href="#">more</a>
</div>
</div>
</td>
<td>
<div class="container">
<div class="title">
articles
</div>
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
blabla blabla<br />
<div class="more">
<a href="#">more</a>
</div>
</div>
</td>
</tr>
</table>
In the markup above, the right DIV is longer than the left because it contains more content.
Bookmarks