solution to IE7 min-height problem?

This is a discussion on "solution to IE7 min-height problem?" within the Web Page Design section. This forum, and the thread "solution to IE7 min-height problem? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 13th, 2006, 20:34
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
solution to IE7 min-height problem?

as you probably know, internet explorer for some reason confuses min-height with height.

up til now, i have been using this hack:

height: expression('331px'); min-height:331px;

but it does not work in the new IE7

has anyone got a solution that will work in all browsers?
Reply With Quote

  #2 (permalink)  
Old Nov 14th, 2006, 00:16
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

Ah crap. I need to relook over my designs in IE7 now. That browser is pissing me off and I don't even use it. Just conceed to Mozilla already!!!
Reply With Quote
  #3 (permalink)  
Old Nov 14th, 2006, 09:51
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: solution to IE7 min-height problem?

It was not that IE confused the two attributes, it just didn't recognise min-width and min-height prior to IE 7 where they are supposed to have been fixed.

You should keep away from 'hacks' anyway. Use conditional statements that only IE (all versions) understand to include css after all the other css to tweak things into place for particular versions.

Conditional statements take the form:
Code: Select all
<!--[if IE]>
<link rel="StyleSheet" type="text/css" href="ieonly.css" />
<![endif]-->
This version will apply to all IE versions. You can add version numbers to the 'if' statement as well as use operators such as 'lte'.
Reply With Quote
  #4 (permalink)  
Old Nov 14th, 2006, 11:01
drd drd is offline
SuperMember

SuperMember
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

As above really.
Problem with hacks is you are relying on a passer bug. If the passer bug is fixed, but the original problem not addressed, then you end up with the issue you have with IE7.
Reply With Quote
  #5 (permalink)  
Old Nov 17th, 2006, 07:44
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

I always forget about those IE conditionals. Oh well, I still prefer taking the time to make a design work in every browser with just one stylesheet.
Reply With Quote
  #6 (permalink)  
Old Nov 17th, 2006, 14:32
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: solution to IE7 min-height problem?

Well as nice as that is we live in an imperfect world where things like IE live and poop on everything.

Quote:
Originally Posted by ryanfait View Post
I always forget about those IE conditionals. Oh well, I still prefer taking the time to make a design work in every browser with just one stylesheet.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #7 (permalink)  
Old Nov 17th, 2006, 14:57
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: solution to IE7 min-height problem?

the new ie7 actually fixed a lot of things, i.e6 and below is the problem.

FF and I.E7 display valid code near enough the same now.
Reply With Quote
  #8 (permalink)  
Old Nov 17th, 2006, 15:04
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: solution to IE7 min-height problem?

Yeah PNG support, support for background-attachment:fixed; among others. Sure will be nice.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #9 (permalink)  
Old Nov 17th, 2006, 15:14
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: solution to IE7 min-height problem?

I cant wait to see the back of i.e6
Reply With Quote
  #10 (permalink)  
Old Nov 21st, 2006, 09:43
drd drd is offline
SuperMember

SuperMember
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

Yeah I like IE7, things are much better!
Reply With Quote
  #11 (permalink)  
Old Nov 21st, 2006, 11:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

Really, I haven't come across a design yet that I can't accommodate every major browser in a single stylesheet without hacks.
Reply With Quote
Reply

Tags
css, height, ie7, min height

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Div height problem dryjoy Web Page Design 1 Jan 6th, 2008 18:05
Height problem frinkky Web Page Design 2 Jan 16th, 2007 15:14
Please check this site is there any solution for this problem? abdghadir Web Page Design 14 Dec 12th, 2006 08:12
Firefox and 100% height problem monkey64 Web Page Design 17 Sep 29th, 2006 23:09
css problem - div height edd_jedi Web Page Design 3 Aug 30th, 2006 19:38


All times are GMT. The time now is 00:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43