WordPress.org

Support

Support » How-To and Troubleshooting » Can i get an example of specifying image dimensions

Can i get an example of specifying image dimensions

Viewing 5 replies - 1 through 5 (of 5 total)
  • It wants you to have height and width attributes, or the CSS equivalent, for those image tags. For example, your avatar on this forum:

    <img style="height:48px; width:48px;" class="photo avatar avatar-48" src="http://www.gravatar.com/avatar/9107bfc60d10714c163099f1653ebede?s=48&d=monsterid&r=g" alt="">

    Here is the info page provided by gtmetrix: http://gtmetrix.com/specify-image-dimensions.html

    So basically if the image already have 412 x335 just add the px;?
    If thats true, what if im using a image plugin for the sidebar and it wont allow me to add the px; to the picture, how do i add it then?

    Chances are the image doesn’t already have anything. It especially doesn’t have “412 x 335” because that it invalid markup.

    So, your image plugin is loading full sized images in the sidebar? Not ideal. You can add a rule to your stylesheet and don’t need to edit the plugin at all, but that could be tricky given that your image sizes are all over the place. Let me ask this, what size are the images supposed to be when they are displayed on the site?

    thanks for replying back. ok i have a feature content slider that is suppose to display images at 640x 250, in my sidebar images i have some images at 173×125 and if i have an ad, i would like to be probably 300 x 260

    Michael

    @alchymyth

    Forum Moderator

    you are causing confusion by having two topics open with the same question; I am closing this one because the other one has more replies; apologies to the supporting member 😉

    please continue with http://wordpress.org/support/topic/specify-images-using-css-block-elements?replies=8

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can i get an example of specifying image dimensions’ is closed to new replies.
Skip to toolbar