Support » Themes and Templates » how to center image

  • Hello how can i center this images on my blog ? using CSS instead?
    my blog : http://www.vitamineproteine.com
    i have created one html widget and put in the sidebar with social network icons. but when i try to validate my html
    i get this error: Deprecated HTML tags are HTML tags that are no longer used. It is recommended that you remove or replace these HTML tags because they are now obsolete.
    Can anyone help me and give me a Good code to center this image?
    thanks

    <center><a href="https://twitter.com/Vita_Prot"><img class="alignnone size-full wp-image-2752" style="border: none;" title="Twitter" src="http://www.vitamineproteine.com/wp-content/uploads/2012/09/twitter.png" alt="" width="64" height="64" /></a><a href="http://www.facebook.com/pages/Vitamine-Proteine/315778921853501"><img class="alignnone size-full wp-image-2751" style="border: none;" title="Facebook" src="http://www.vitamineproteine.com/wp-content/uploads/2012/10/Facebook.png" alt="" width="64" height="64"  /></a>
    <a href="https://plus.google.com/u/0/103699025080619492549/posts">
    <img class="size-full wp-image-2753 alignnone" style="border: 0px;" title="Google Plus" src="http://www.vitamineproteine.com/wp-content/uploads/2012/09/google-plus.png" alt="" width="64" height="64"/></a>
    <a href="https://plus.google.com/103699025080619492549?prsrc=3" rel="publisher"></a></center>
Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    i have try but unfortunatly dont work this is the why i have post here

    hey try this

    <center><a href="https://twitter.com/Vita_Prot"><img class="alignnone size-full wp-image-2752" style="border: none;" title="Twitter" src="http://www.vitamineproteine.com/wp-content/uploads/2012/09/twitter.png" alt="" width="64" height="64" /></a><a href="http://www.facebook.com/pages/Vitamine-Proteine/315778921853501"><img class="alignnone size-full wp-image-2751" style="border: none;" title="Facebook" src="http://www.vitamineproteine.com/wp-content/uploads/2012/10/Facebook.png" alt="" width="64" height="64" align="center"/></a>
    <a href="https://plus.google.com/u/0/103699025080619492549/posts">
    <img class="size-full wp-image-2753 alignnone" style="border: 0px;" title="Google Plus" src="http://www.vitamineproteine.com/wp-content/uploads/2012/09/google-plus.png" alt="" width="64" height="64" align="center"/></a>
    <a href="https://plus.google.com/103699025080619492549?prsrc=3" rel="publisher"></a></center>

    hi Evo88 you post the same code at first post

    Replace :
    <center></center>
    with :
    <div style="text-align:center;"></div>

    kevinhaig
    thank you very very VERY much i have solved!
    with your CODE!!!
    :))))))
    YUPPPPPPPPPPPP

    hey Marius
    no my brother not same i add align=”center” this code help to make image in center 🙂

    yep evo88 but i get the same error msg with our code with w3c validator
    the best kevinhaig have solved fast my probelm with the code
    <div style=”text-align:center;”></div>

    yup yup yup

    Your welcome

    oh nice my brother 🙂 and thank you Kevinhaig 🙂

    thank you all for your time!

    🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘how to center image’ is closed to new replies.