Need help? Check out our Support site, then


Centre Images in a HTML Widget

  1. Hello,

    I've been previously using the Gravatar widget but the gap between the image and the links in the next widget was too long so I decided to use a HTML widget instead.

    Although I cannot get it to centre. This is my current code:

    <img src="http://0.gravatar.com/avatar/ed72188aafed120a1367c22b1bb10a04?s=96&d=identicon&r=PG" alt="Feedburner Icon" />

    And putting <center> </center> around the code above doesnt work as the centre code removes itself just leaving the image code behind with the standard left alignment.

    Any help provided is appreciated in advance.

    The blog I need help with is shane3x.com.

  2. Fixed that for you.
    Check the widget and adjust the -5
    If it's not right, post back.

  3. Oh cool it's perfect. Thanks.

  4. If you need to centre something else like this in the future you can use inline CSS to set automatic margins on the left and right sides:

    <img src="URL" alt="ALT" style="margin:0 auto;" />

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.