Results 1 to 5 of 5

Thread: Align a Picture on Wordpress

  1. #1
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts

    Align a Picture on Wordpress

    Hi,

    After all the help I got with the centering a video. Now maybe some one could help me align a picture?

    I thought it would just be better to post what I have done

    Here is how it looks in the back end admin.



    Here is the HTML




    Here is how it appears when published



    What did I do wrong this time?

    What do I need to change?

    I want it to publish like it show in the admin.

    Thanks in Advance

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  2. #2
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts
    after wordpress v2.5 you are required to have following code in your style.css

    img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }
    img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
    }
    img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
    }
    .alignright {
    float: right;
    }
    .alignleft {
    float: left;
    }
    worked or not?

  3. Thanked by:

    Sami4u (5 October, 2009)

  4. #3
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,421
    Thanks
    697
    Thanked 293 Times in 221 Posts
    Hi,

    Looking at my style .css I don't see the code in there. So where should I copy and paste it at?

    Butterflies Forever

    Sami

    I copied it under the body before the global elements and it worked.

    Thanks Big time.
    Last edited by Sami4u; 5 October, 2009 at 05:58 AM. Reason: works
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  5. #4
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts

  6. Thanked by:

    Sami4u (5 October, 2009)

  7. #5
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts
    you can just use photo gallery plugins if you like.

Similar Threads

  1. Share your picture
    By ChatBox in forum General Chat
    Replies: 7
    Last Post: 5 April, 2010, 15:37 PM
  2. Weird Picture
    By ChatBox in forum General Chat
    Replies: 0
    Last Post: 16 February, 2010, 01:16 AM
  3. Picture of the day
    By hendricius in forum General Chat
    Replies: 178
    Last Post: 3 September, 2009, 15:00 PM
  4. Drawn picture of me
    By stickycarrots in forum General Chat
    Replies: 10
    Last Post: 17 February, 2009, 05:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •