Forum Moderators: not2easy
#content {
width: 690px;
}
#content .blockleft .text {
float: left;
width: 427px;
padding-right: 5px;
border-right: 3px solid silver;
}
#content .blockright .text {
float: right;
width: 427px;
padding-left: 5px;
border-left: 3px solid silver;
}
#content .blockleft .attr {
float: right;
width: 255px;
}
#content .blockright .attr {
float: left;
width: 255px;
}
And this HTML:
<div id="content">
<div class="blockleft">
<div class="text">
Some text...
</div>
<div class="attr">
[May contain images, text, metadata, etc]
</div>
</div>
'blockleft' and 'blockright' are used to swap the position of the two columns.
Either one of the two colums 'text' or 'attr' is the longest and I want the border in between them to run from top to bottom of the outer 'blockleft' or 'blockright' class. With above CSS/HTML it has the height of the 'text' column. At forehand I don't know which of the two will be the longest.
How can I accomplish this using CSS?
Thanks,
Arjan