[wp-hackers] Twenty Ten theme issue?

Otto otto at ottodestruct.com
Sun Aug 15 23:28:31 UTC 2010

No, it sounds like a WordPress bug. Resizing should not be done via
the image width and height tags, ever.

The width and height should always be set to the actual width and
height of the image. These are tags describing the image itself; they
are not presentational.

CSS always takes precedence over the HTML attributes for this sort of
thing. If you want it resized inline like that, then the code should
be adding inline styles to override the stylesheet, not screwing
around with the img width and height tags.


On Sun, Aug 15, 2010 at 4:15 PM, Rich Pedley <elfin at elfden.co.uk> wrote:
> Hi,
> following on from this thread:
> http://wordpress.org/support/topic/image-not-resizing-in-wysiwyg
> It looks like in the default TwentyTen CSS there is this portion:
> #content img {
>        margin: 0;
>        height: auto;
>        max-width: 640px;
>        width: auto;
> }
> That width:auto (at least in Firefox, causes the image to display at the
> size it was inserted, rather than the correct resized size that is actually
> in the img tag.
> Can others confirm? and is it a bug of that theme?
> Rich
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list