en WordPress.com Forums › Support Centre Images in a HTML Widget Author Posts August 30, 2010 at 8:26 am #514493 shane3xMember 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. August 30, 2010 at 9:11 am #514591 markStaff Fixed that for you. Check the widget and adjust the -5 If it’s not right, post back. August 30, 2010 at 9:32 am #514593 shane3xMember Oh cool it’s perfect. Thanks. August 30, 2010 at 11:06 am #514597 halllukeMember 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;" /> Author Posts The topic ‘Centre Images in a HTML Widget’ is closed to new replies.