center an image with theme that floats everything left

Discussion in 'HTML & Website Design' started by quatto, Jan 8, 2011.

  1. #1
    What code can I put in specific posts in wordpress when I insert an image I want centered but the rest of the theme floats all images to the left.

    I want to keep the default float left on the theme, except for the one image I put in a post, that one I want to center.

    Can someone give me example in html code?
     
    quatto, Jan 8, 2011 IP
  2. panteng

    panteng Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    please use this syntax >> "<CENTER></CENTER>" (without quote) or use this syntax " <IMG SRC="URL" ALIGN=TOP|BOTTOM|MIDDLE|LEFT|RIGHT> " (wihout quote)...

    testing >> <IMG SRC="http://www.indiesmiles.com/wp-content/uploads/2010/12/2010/12/SMILE.jpg" ALIGN=MIDDLE>
     
    Last edited: Jan 8, 2011
    panteng, Jan 8, 2011 IP
  3. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, but the theme code overrides this. Do I need a div or something?
     
    quatto, Jan 8, 2011 IP