I've been out of the game for a while but I've finally got around to redoing my website after five years.
Each page on my new site will have a subheader with a big page title, a vertical line and then a short description of the page. Since each title is of a different length I need both columns to be fluid. Suffice it to say, this does not appear to be a very pervasive need because I couldn't find any guides on the subject. I tried a number of things without any widely-compatible success. After struggling with floats and other crap, I finally tried display:table values which immediately gave me the desired result... except in internet explorer, which does not recognize CSS table values. Since I can't really ignore IE, I need to replicate the effect without the display values I've used. I'd greatly appreciate any help that could lead to a solution to this "problem."
Here's the code that works in every browser except IE 7 and below.
HTML Code:
<div class="contentPageHeaderContainer">
<div class="pageTitleContainer"><span class="pageTitle">VAIO Wallpapers</span></div>
<div class="pageDescription">
Mr. B's Domain is the personal website of Brian Bennett, professional student and aspiring renaissance man.
It documents my dabbling in <a href="portfolio.php">web design</a>
and <a href="/gallery2/">photography</a> as well as my <a href="news/archive.php">daily activities</a>.
This website also hosts the best collection of <a href="vaio_wallpapers.php">VAIO wallpapers</a> on the internet.
</div>
</div>
The CSS...
Quote:
.contentPageHeaderContainer {
width: 990px;
display: table;
}
.pageTitleContainer {
display: table-cell;
vertical-align: middle;
text-align: left;
padding: 0 20px 0 0;
margin: 0;
border-right: 2px solid #285066;
}
.pageDescription {
display: table-cell;
vertical-align: middle;
width: 100%;
text-align: left;
padding: 0 0 0 20px;
margin: 0;
}
|
Last edited by Mr. B; 08-08-2008 at 03:17 PM..
|