Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Height: inherit; Firefox Display
Old 07-30-2008, 11:37 AM Height: inherit; Firefox Display
Novice Talker

Posts: 5
Trades: 0
Hey guys, loving the look of this forum! wonder if anyone can help me!

i am remaking a portfolio using divs.

Basicly here is my code:
<div id="main">
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</div>

And the CSS:
#main {
width:800px;
min-height: 500px;
height:inherit;
}

.left {
float:left;
width: 130px;
padding: 5px;
}

.center {
float:left;
width: 395px;
padding: 5px;
height:100%;
}

.right {
float:right;
width: 242px;
padding: 5px;
height: 590px;
}

My issue at the moment is that the content displays fine aslong as its less that the min-height as set as 500px. But if the text overflows this, firefox does not expand the div to fit the content whereas IE7 does.

Please tell me what im doing wrong!

Last edited by lewisbuttress; 07-30-2008 at 11:38 AM..
lewisbuttress is offline
Reply With Quote
View Public Profile Visit lewisbuttress's homepage!
 
 
Register now for full access!
Old 07-30-2008, 11:56 AM Re: Height: inherit; Firefox Display
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
And your purpose for height: inherit is?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-30-2008, 12:07 PM Re: Height: inherit; Firefox Display
Novice Talker

Posts: 5
Trades: 0
I just read on google somewhere, that clearly didnt work

Body is set to height 100%, Then main is the container for left, right and center however when the content exceeds the min-height - firefox does not expand the container to fit the content.
lewisbuttress is offline
Reply With Quote
View Public Profile Visit lewisbuttress's homepage!
 
Old 07-30-2008, 12:12 PM Re: Height: inherit; Firefox Display
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Please tell me what im doing wrong!
Nothing.

IE treats height:NNpx; as min-height:NNpx; but doesn't actually support min-height:NNpx
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-30-2008, 12:13 PM Re: Height: inherit; Firefox Display
Novice Talker

Posts: 5
Trades: 0
But IE is expanding fine. It seems to be that Firefox sees min-height as actual height rather than a minimum before expansion?
lewisbuttress is offline
Reply With Quote
View Public Profile Visit lewisbuttress's homepage!
 
Old 07-30-2008, 12:19 PM Re: Height: inherit; Firefox Display
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well seeing as you have a fixed height (of the body, which will be the viewport height effectively ) overriding the min-height what would you expect it to do
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-30-2008, 12:25 PM Re: Height: inherit; Firefox Display
Novice Talker

Posts: 5
Trades: 0
But the problem is the way firefox is intrepting my main div.
lewisbuttress is offline
Reply With Quote
View Public Profile Visit lewisbuttress's homepage!
 
Old 07-30-2008, 12:30 PM Re: Height: inherit; Firefox Display
Novice Talker

Posts: 5
Trades: 0
do you have msn, i could send you a copy of my html file?
lewisbuttress is offline
Reply With Quote
View Public Profile Visit lewisbuttress's homepage!
 
Old 07-30-2008, 02:57 PM Re: Height: inherit; Firefox Display
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Firefox is doing exactly what you've told it to do. IE always gets it wrong in that it 'shrink wraps' anything even if you give it a fixed width/height. IE6 and below doesn't support min/max width/height. Firefox DOES obey min/max width and height.

Look in the stickies, there is a whole thread dedicated to achieving 100% height.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Height: inherit; Firefox Display
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33182 seconds with 12 queries