Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2005, 12:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic heights

I think I've hurt my brain trying to figure this out. How can I get my content box to strech with the rest of the page. I can get it to work in apple safari, windows explorer, then it does not work on apple explorer.

min-height is ignored in explorer and height stops at the set size in safari with the text overflowing, but is also ignored in apple explorer, as you all probably already know, so how do you handle this, without using tables and set heights?

______my content wrapper. I've used the * trick
* html div.contentHldr
{
    width: 800px;
    background-color: #E3EADA;
    margin: auto;
}

div.contentHldr
{
    width: 800px;
    min-height: 325px;
    background-color: #E3EADA;
    margin: auto;
}

_____left side
#leftFrame
{
    width: 150px;
    float: left;
    height: 324px;
    border-top: 1px #FFFFFF solid;
    background-color: #E3EADA;
}

_____right side

#rightFrame
{
    min-height:325px;
    height: 325px;
    margin-left: 150px;
    padding: 0 45px;
    background-color: #FFFFFF;
}

http://www.eclecticpixel.com/sites/r...d.php?author=3
http://www.eclecticpixel.com/sites/r...d.php?author=2

Thanks in advance
Mike

Peace
Mike
http://www.eclecticpixel.com
http://www.homegrownmusicjam.com
__________________
Peace
Mike
http://www.eclecticpixel.com
 
Old July 28th, 2005, 08:12 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You'll need to give Explorer Windows the height: 325px; via a conditional comment. Explorer Mac ought to be OK once you take out that fixed height.

Code:
<!--[if lt IE 8]>
    <style type='text/css'>
          #rightFrame
          {
               height:325px;
          }
    </style>
<![endif]-->
You can read more about conditional comments here:
http://msdn.microsoft.com/workshop/a...omment_ovw.asp

Explorer Mac doesn't support conditional comments, only Explorer Windows. That lets standards browsers that interpret height properly be free of Explorer's proprietary behavior. Explorer Mac is much more standards compliant than Explorer Windows. You see in the comment that I've selected Explorers less than version 8. I've been trying out the IE7 beta, and it doesn't appear to have *any* improvements to CSS so far (beyond two bug fixes). Microsoft has said that may change before the next beta. So which version of Explorer to put in those conditional comments is really in limbo right now.

Are these your comments?
"______my content wrapper. I've used the * trick"

These should be in proper syntax like this:
/* my content wrapper. I've used the * trick */

HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Columns & Dynamic Grouping ??? nileshgambhava BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 March 24th, 2008 07:58 AM
help writing dynamic form data to dynamic table ublend SQL Server ASP 1 June 1st, 2007 08:09 AM
help writing dynamic form data to dynamic table ublend Classic ASP Professional 1 June 1st, 2007 08:08 AM
control heights not changeable? ParadiseIsle Beginning VB 6 1 November 10th, 2005 02:26 PM
Stubborn Dreamweaver MX table heights!! lateralex Dreamweaver (all versions) 5 July 28th, 2004 10:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.