IE6 Div Height Problem
Resolve the IE6 div height issue.
We all know IE6 is the web developers nightmare and today that continued when I was unable to make a 5px high div appear that height in IE6. Wow, the amount of time I spend on IE6 when developing sites is quite astonishing and I can’t wait for the day when we see the death of IE6. Anyhow back to the problem: IE6 kept wanting to show the 5px high div as 20px! After a bit of playing and hunting around the web here’s how I overcame the problem.
For example you have:
#small-div {
width: 100px;
height: 5px
background-color: red;
}
So this will appear in most browsers as a 5px div. But in IE6 it appears higher. So to overcome that issue simply add a zero font size to the CSS e.g:
#small-div {
width: 100px;
height: 5px
background-color: red;
font-size: 0px;
}
Now, if you have text in that div, you obviously don’t want to set the font size as zero so you can also try setting the overflow:hidden element which can also do the trick.
-
HTML email signature in Apple Mail
Step by step guide on how to add an HTML signature to Apple Mail.
-
Secure your WordPress Blog
A guide to securing your WordPress website.
-
HTML email signature in Gmail
How to add a HTML signature in Gmail, without any text-decoration for links
-
Remove p tags from category description
By default Wordpress adds paragraph tags to category descriptions. Find out how to stop this.
-
DIV align bottom right (or left!)
Find out how to align a DIV to the bottom left or right.
-
Website Dimensions and Designing for the Web
What browser size should you design your website. Find out more.
-
Root Path and Configuration of your Website using php
Display the root path and configuration of your website by uploading a php file to your website.
-
HTML email signature in Zoho Mail
How to add a HTML signature in Zoho Mail. A very easy and stable solution.
-
FREE EU Cookie Law Script
If you haven’t already implemented the changes then we’ve put together a little bit of code to help you.
-
Remove the shadow from Mac Screen Grabs
How to remove the shadow from Apple Screengrabs.
-
10 Useful Sites for Web Developers
Some useful websites for web developers.
-
3 FREE Apps to protect your PC
A few free apps to help you protect your PC.