/    Sign up×
Community /Pin to ProfileBookmark

Firefox height issue

Hello guys,

I was wondering if anyone has a solution to this…

Basically I have 3 divs using floats the position with a holding div. The holding div has a min-height set, but when I over type in the middle one of the three divs the text appears to be on the outside of the holding div in firefox. Works ok in IE. I know FF doesn’t support min-height, but was wondering if someone has a fix of some sort?

Below is my .htm page.

Thanks

[SIZE=”1″][COLOR=”Red”]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
<style type=”text/css”>
<!–
#product-holder-sim{
margin:auto;
width:500px;
border:#666666 solid 1px;
min-height: 200px;
}
.product-image{
float:left;
border:1px solid #000066;

padding: 5px;
width:80px;

}
.product-desc{
padding: 5px;
width:290px;
float:left;
border:1px solid #FF0000;
}

.product-btn{
width:100px;
padding-top: 30px;
float: right;
border:1px solid #000066;
}
–>
</style>
</head>

<body>

<div id=”product-holder-sim”>
<div class=”product-image”>1</div>
<div class=”product-desc”>
<h4><a href=”#”>2</a></h4>
<p>Info goes in here, but in firefox the outer div doesn’t adjust the height causing the text to jump out of the div</p>
<p>gvesdg</p>
<p>edgbe</p>
<p>gbe</p>
<p>bd</p>
<p>&nbsp;</p>
</div>
<div class=”product-btn”>
<div class=”arrow”>
<div class=”arrow-holder”>3</div>
<div class=”arrow-text”><a href=”#” class=”dark-blue”>more details</a></div>
</div>
</div>
</div>
</body>
</html>[/COLOR][/SIZE]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 31.2008 — #product-holder-sim{
[COLOR="Blue"]overflow:hidden;[/COLOR]
margin:auto;
width:500px;
border:#666666 solid 1px;
min-height: 200px;
}
Copy linkTweet thisAlerts:
@drhowarddrfineOct 31.2008 — It is IE that does not support min-height, not Firefox. Never, ever use IE as a reference for how things should work.
×

Success!

Help @ranjistinos spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...