Support » Theme: Montezuma » Montezuma HTML bug on Chrome

  • Saibamen

    (@saibamen)


    Hi.

    I have site IT-Maniak.pl and on FF it works fine, but in Google Chrome doesn’t 🙁

    Borders of images are too fit. W3C validator see this:

    Bad value 180 for attribute height on element img: Expected a digit but saw instead.
    
    width="620" height=" 180" alt="blablabla"

    There’s a space before height value. Where can I fix this? This theme has too many files and it isn’t default WordPress Theme styling. Please help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Saibamen

    (@saibamen)

    I’ve just add height: 185px; to .post-thumb { in posts.css.

    This is correct fix?

    Ok. Today i updated to 1.2.2 and most errors on W3C are gone 😉

    But this update doesn’t fix this bug.

    height: 185px; is necessary.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    But this update doesn’t fix this bug.

    Which bug? On your site I can’t see “height” attributes with spaces in

    Borders of images are too fit on Google Chrome. I must put height: 185px on .post-thumb to works. It’s correct fix?

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    If you want, or maybe set an ‘overflow’ of ‘hidden’ to your containers

    If you are trying to set the height of the thumbnail images on your blog page to something other than 180px, then go look at the postformat.php virtual subtemplate. The function which outputs the thumbnail is this:

    <?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>

    If you want the height of all of your thumbnails to be 185px, then just change the second parameter from 180 to 185.

    @crouchingbruin: yes, but this doesn’t work on Google Chrome.

    So you changed it to 185? Because in Firefox, Internet Explorer, and Chrome, I still see the height attribute as 180. And it shouldn’t matter which browser I’m using, the browser doesn’t change the value of the attribute in the source.

    What’s strange is that for the very first post, the img_wrapper container is set to a height of 180px, but all of the other posts have the height set to 172px.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Montezuma HTML bug on Chrome’ is closed to new replies.