Forum Moderators: not2easy

Message Too Old, No Replies

Hiding an overflowing image.

         

Blutarsky

3:47 pm on Sep 29, 2009 (gmt 0)

10+ Year Member



Ten rows, each one made by:

* Outer DIV, height = 82px
** inner DIV left
***** floated left image width = 60px
** inner DIV right
***** some text

In the inner DIV left, images are floated left, and resized and scaled accordingly using "width" parameter. Image height is omitted to allow proper scaling; as a result images exceeding outer DIV height, they do overflow.

I have tried to style inner DIV left with overflow:hidden, but this doesn't help.....

Any idea?

D_Blackwell

5:27 pm on Sep 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not resize the image itself with a graphics program? Resizing in CSS is a hack.
..........................

resized and scaled accordingly using "width" parameter. Image height is omitted to allow proper scaling;

You can't scale without width and height. Scaling is proportional.

I am missing something, because it shouldn't be overflowing the container anyway.

Blutarsky

7:57 pm on Sep 29, 2009 (gmt 0)

10+ Year Member



It does overflow because it's floated, I believe....