On 4/26/10 11:01 AM, JWN wrote:
> Morning all
>
> At www.oldcurmudgeon.net I'm having a small problem with an image (
> the old curmudgeon ) expanding into the main content at ctrl + 4 font
> sizing and larger on a 1024 x 768 canvas.  Is there a CSS way to
> contain the image.  I have set explicit width and height in html  and
> max width in the css, but none of that seems to be the answer.
>
> Tested in IE 7 and 8, FF 3.6, Opera, Chrome, Safari Win on Win XP sp3
> PC.
>
> Any suggested fixes greatly appreciated.
>

Do you mean page zoom rather than font (text) sizing? I don't see a
problem with the image on increased text size.

Anyway, testing in IE 8 (including compatibility mode), Safari (Mac),
and Firefox 3.5 (Mac) I find this works fairly well:

1. Take out the explicit width and height from the IMG tag
2. Make the max-width: 100%; in the #image img rule

Hope this helps.

Cordially,
David
--
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to