All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

How to center image inside a tag ?

  • # May 17, 2013 at 2:51 am

    I want to add icon to the menu, but I want them centered as well

    # May 17, 2013 at 2:53 am

    I want to add image inside a tag

  • Milford Sound in New Zealand
    New Zealand
# May 17, 2013 at 4:42 am

a img {
display: block;
margin: 0 auto;
border: none;

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed