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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 13th, 2006, 21:34
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 75
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 14th, 2006, 01:16
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 14th, 2006, 10:51
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 14th, 2006, 12:01
drd drd is offline
Up'n'Coming Member
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 89
Thanks: 1
Thanked 1 Time in 1 Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 17th, 2006, 08:44
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 17th, 2006, 15:32
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 17th, 2006, 15:57
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 22
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 17th, 2006, 16:04
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: solution to IE7 min-height problem?

Yeah PNG support, support for background-attachment:fixed; among others. Sure will be nice.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 17th, 2006, 16:14
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 22
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
Re: solution to IE7 min-height problem?

I cant wait to see the back of i.e6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 21st, 2006, 10:43
drd drd is offline
Up'n'Coming Member
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 89
Thanks: 1
Thanked 1 Time in 1 Post
Re: solution to IE7 min-height problem?

Yeah I like IE7, things are much better!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 21st, 2006, 12:11
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 19:05
Height problem frinkky Web Page Design 2 Jan 16th, 2007 16:14
Please check this site is there any solution for this problem? abdghadir Web Page Design 14 Dec 12th, 2006 09: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 14:26.


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