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.

How do I set a height value lower than 10px in IE?

Featured Replies

Hey,

 

I'm having a nightmare figuring out why IE will not set the height of my div box to 4px?

 

Now before CSS I would use tables hack by adding a 1x1px transparent .gif which would allow me to set the height of a table below 10px.

 

As tables are a thing of the past (except for tabulated data of course) - how can I change the height of a div so I can reduce it below IE's defualt 10px?

 

<div id="topbox"></div>

 

#topbox { height: 4px; }

 

Any help would be greatly appreciated.

 

DK :)

Hi DK,

 

I'v encountered this problem many times, hopefully this change to your css will help you.

 

#topbox { 
 height: 4px;
 font-size: 1px;
}

 

Let me know how you get on :)

 

That's the fix for sure :)

  • Author

It works!

 

YES! That was driving me mad! Thank you so very much for the help with this, no doubt i'll be back should i need more help with this.

 

Thank you.

 

DK :)

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.