main content, site navigation, search

Setting image size in image tags

There is a bug in Mozilla browsers, which causes jumping of some parts of the content while loading, and sometimes some portions of layout stay in wrong positions. Experienced this when making slight redesign of Graniti-Sušec homepage. The exact size of the image under introducing paragraph wasn’t set, so during page load, division containing latest news, stayed too far below:

Screenshot of poorly positioned section

This occurs when image is placed in floating parent element, in this case <div>, which floats to the left.

After I set correct size of image: <img src="../slike/skl_3.png" height=”165″ width=”220″ alt=”a detail of stock pile” />, everything stayed at its’ place:

Screenshot of properly positioned section

Feel free to discuss on jumping bugs under the comments..

First voice to “Setting image size in image tags”

  1. Nicolas Ch.
    001—2004.09.23.22:11

    You should check on Bugzilla to see if it’s not already reported, and if it isn’t, then report it !

    I don’t think the (great) Mozilla team can know the bugs that are reported everywhere on the web :)
    So, it’s a good thing to use the centralized bug-tracking system.

    If you’ve already checked and/or reported, please excuse me, and delete this comment. It could be interesting linking to the bug report, too.

Comments are closed.

main content, site navigation, search