Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1175859
    skirttheceiling
    Participant

    Hi,

    A week ago i asked about how to specify the size of an image in my blog post

    I was pointed to this ansewr:
    You could specify the image dimensions by simple adding the width=”$” height=”$” properties to your tags.

    However, I don’t know where my tags are. Can someone help me?

    #1176126
    Paul R
    Moderator

    Hi,

    The tag is the image html code itself.

    eg.

    
    <img src="smiley.gif" alt="Smiley face" height="42" width="42">
    

    If you are using an image shortcode or cornerstone, you can add it in the style field.

    eg.

    
    [image style="height:42px;width:42px;" type="thumbnail" src="http://yourdomain.com/image.jpg" alt="Text"]
    

    http://screencast.com/t/USiM5hYkK

    Hope that helps

    #1180158
    skirttheceiling
    Participant

    ok got it, how do i specify if I want it to be centered?

    Is there a place where I can see what things I can specify in the image tag?

    #1180175
    Christian
    Moderator

    To center the image, please add margin:0 auto;display:block to the style attribute like

    [image style="height:42px;width:42px;margin:0 auto;display:block;" type="thumbnail" src="http://yourdomain.com/image.jpg" alt="Text"]

    For more image options, please see http://demo.theme.co/integrity-1/shortcodes/images/

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1175859 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>