Forum Moderators: open

Message Too Old, No Replies

Netscape's overflow

again, incompatibility...

         

dnimrodx

11:13 am on Feb 11, 2004 (gmt 0)

10+ Year Member



Hello,

I have a page that displays different images in a given DIV. I have given it a fixed width, with an overflow for when the picture is larger. All this works fine in IE, but netscape ignores the overflow and just makes the area bigger.

Anyone has an idea of how this happens and what could be done?
Below is the code used in the php file, and below that is the css file.

<div class="photo" align="center"><img id="photo" src="<?=$grote_photo?>" alt=""></div>

CSS

.photo {
overflow-x: auto;
overfow-y: hidden;
width: 540;
align: center;
}

Thanks a lot,

- d#nimrod

dnimrodx

12:42 pm on Feb 11, 2004 (gmt 0)

10+ Year Member



i have just found out what I was doing wrong -- I did not specify the height! 8-¦