WordPress.org

Ready to get started?Download WordPress

Forums

how to center image (12 posts)

  1. Marius84
    Member
    Posted 1 year ago #

    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>
  2. Andrew
    Forum Moderator
    Posted 1 year ago #

  3. Marius84
    Member
    Posted 1 year ago #

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

  4. Evo88
    Member
    Posted 1 year ago #

    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>
  5. Marius84
    Member
    Posted 1 year ago #

    hi Evo88 you post the same code at first post

  6. kevinhaig
    Member
    Posted 1 year ago #

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

  7. Marius84
    Member
    Posted 1 year ago #

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

  8. Evo88
    Member
    Posted 1 year ago #

    hey Marius
    no my brother not same i add align="center" this code help to make image in center :)

  9. Marius84
    Member
    Posted 1 year ago #

    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

  10. kevinhaig
    Member
    Posted 1 year ago #

    Your welcome

  11. Evo88
    Member
    Posted 1 year ago #

    oh nice my brother :) and thank you Kevinhaig :)

  12. Marius84
    Member
    Posted 1 year ago #

    thank you all for your time!

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic