1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Help - Image in a post / alignment

Discussion in 'WordPress' started by Artifexus, Jan 5, 2009.

  1. #1
    I am having a terrible time getting an image in a post to align right within the text.

    When I align the image right within the text, it looks fine in the admin panel, but it remains unaligned/to the left when I view/refresh the post. It's driving me batty.

    Here is the only code in the html view of the post:

    I'm using StudioPress Green from DBT, with a few minor modifications. The only thing I can think of is that I removed a line of code, but I've only made minor changes.

    Any tips, and I would be VERY greatful.


    Edit: Ok, I'm a dumbass, and fixed this 60 seconds after I wrote this by inserting align="right" in the html section.

    However, I still wonder why selecting align right within the 'Edit Image' doesn't work in WP? Anyone else have this problem?

    Thanks.
     
    Artifexus, Jan 5, 2009 IP
  2. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #2
    was it meant to be
     
    mann3r, Jan 6, 2009 IP
    Artifexus likes this.
  3. jscowen

    jscowen Peon

    Messages:
    148
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I had the same problem a while back, I've since sold the blog where I had this issue however from memory the problem was due to the template I was using missing a "alignright" CSS style.

    Here's some more detailed information: http://wordpress.org/support/topic/189352

    Hope this helps!
     
    jscowen, Jan 6, 2009 IP
    Artifexus likes this.
  4. Artifexus

    Artifexus Active Member

    Messages:
    257
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    That's essentially what I used to fix it, add align="right" by hand in the html view on the post editor. I think jscowen is right that it's meant to be a css class and it's missing.

    Thanks guys.
     
    Artifexus, Jan 6, 2009 IP
  5. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #5
    It happened with one of my blog and actual problem was under laying in css stylesheet. Other blogs are working fine becoz their stylesheet coding is proper.

    So check ur stylesheet
     
    Jalpari, Jan 10, 2009 IP
  6. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #6
    Be sure the theme you are using has the class alignright in the css file
     
    craiger22, Jan 11, 2009 IP
  7. skriblk

    skriblk Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Use the right class alignright in the css file
     
    skriblk, Jan 11, 2009 IP