Forums

img height problem with TwentyTen 1.1 style.css (4 posts)

  1. pigdog234
    Member
    Posted 1 year ago #

    I ran into a problem with TwentyTen 1.1 in that image sizing wasn't working, both in Firefox and Safari. The problem didn't occur in Classic (I switched), and I was able to localize it to the style.css entry for img:

    #content img {
            margin: 0;
    >>>     height: auto; <<<<
            max-width: 640px;
            width: auto;
    }

    I don't understand why the height line is there, since auto is the default, but when listed in a theme it seems to override the parameter to <img>. Is this a bug in twentyten or in my brain?

    Sorry if this has been dealt with before. I did search, perhaps unsuccessfully.

  2. namklim
    Member
    Posted 1 year ago #

    It is a known bug introduced in TwentyTen 1.1 to attempt to correct an earlier problem with display in IE8. Hopefully it will be resolved with the next release.

    see http://wordpress.org/support/topic/twenty-ten-11-ignoring-image-width-resizing

  3. pigdog234
    Member
    Posted 1 year ago #

    Hi,

    Thank you very much, @namklim, for your response. I do note that the bug I experienced related to height: auto. I see that the issue seems to be a compatibility problem with IE8, but is that confirmed?

    Thanks!

  4. namklim
    Member
    Posted 1 year ago #

    The IE8 problem was mentioned here http://wordpress.org/support/topic/changes-twentyten-10-11#post-1619942

    You can see more info in the bug tracker http://core.trac.wordpress.org/ticket/14303 and it seems to have been fixed so hopefully there will be an update to TwentyTen sometime soon rather than having to modify the style.css?

Topic Closed

This topic has been closed to new replies.

About this Topic