The blog of Jafar Aliyev

Archive

Creation date:

Height of parent container

Never give exact height value for upper container because in case of overflow you can get undesired effects.
If you write overflow: visible rule, then if content overflows the container it’ll expand this container in IE, but in Mozilla and Opera will overlap to the nearest container. Instead write:
overflow: auto;
and don’t show the height at all. Then in all browsers you’ll get the same expanding effect.
If you give exact size of height, you’ll get hidden effect with overflow: auto; rule in all browsers.

Remember:

overflow: auto; and no height = expand effect
overflow: auto; and given exact height = overflow: hidden

Author: Jafar N.Aliyev (Jsoft)

Read also

Fixing overflow: hidden in IE

<div> against <table>

Measuring units for padding

Fixed background image

IE bug with first line

Overflow of inner block

The meaning of margin in Internet Explorer and Firefox

CSS hacks
Nowadays many designers give all measures in pixels, including the font sizes. They fit their site to Internet Explorer and...

Internet Explorer bug with tall block
The problem of IE with two containers. If the internal container is longer than one screen of browser you'll encounter the problem.

© Copyright

All articles in this site are written by Jafar N.Aliyev. Reproducing of any article must be followed by the author name and link to the site of origin(this site). This site also keeps the same rules relative to the articles of other authors.