WordPress.org

Ready to get started?Download WordPress

Forums

Montezuma
Montezuma HTML bug on Chrome (10 posts)

  1. Saibamen
    Member
    Posted 5 months ago #

    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.

  2. Saibamen
    Member
    Posted 5 months ago #

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

    This is correct fix?

  3. Saibamen
    Member
    Posted 5 months ago #

    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.

  4. Andrew
    Forum Moderator
    Posted 5 months ago #

    But this update doesn't fix this bug.

    Which bug? On your site I can't see "height" attributes with spaces in

  5. Saibamen
    Member
    Posted 5 months ago #

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

  6. Andrew
    Forum Moderator
    Posted 5 months ago #

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

  7. CrouchingBruin
    Member
    Posted 4 months ago #

    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.

  8. Saibamen
    Member
    Posted 4 months ago #

    @CrouchingBruin: yes, but this doesn't work on Google Chrome.

  9. CrouchingBruin
    Member
    Posted 4 months ago #

    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.

  10. CrouchingBruin
    Member
    Posted 4 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic

Tags