Navigator


Archive

201139
201230
201312
20151
201633
201755
201865
201955
20234

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 results expand effect
overflow: auto; and given exact height means overflow: hidden;

Author: Jafar N.Aliyev (Jsoft)

Read also

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.