Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS min-height HACK?

Featured Replies

Hi,

 

I need a page on a site im doing to be at least 518px high.

Ive used the min-height css rule but i understand IE6 and below dont understand this!

Also, is there some problem in IE7 with this rule too?

 

Ive seen a few diff hacks about but which one is best...?

 

Your replies would be grateful.

I use this method:

 

1. put this in the <head> of an html page:

 

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie6.css" />
<![endif]-->

 

2. in ie6.css add this rule:

 

#your-div {height:518px;}

 

Because ie6 stretches the div down despite the height property, ie6’s idea of 'height' appears as 'min-height'.

  • Author

So it will still 'stretch' ?

 

What about IE5?

yes it will stretch because of a bug in ie6. I can't help with ie5 since I no longer test for it.

IE5 !!!

 

Where have you been man?

 

IE5 / IE6 <<<< dont code for them your just encouraging people to hang on to these relics.

 

Your wasting your time imo.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.