Aligning adsense code to the right (inside a blog post)

Discussion in 'CSS' started by drkirby, Nov 22, 2007.

  1. #1
    Hello,

    I'm slowly learning CSS... I need to input ad code within my blog posts, and want the ad to automatically align on the right.

    I also use the Ad Spaces plugin for wordpress.

    Any ideas on how to do this?

    Thanks.
     
    drkirby, Nov 22, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't use the AdSense plugin for WordPress, but you should contain the script inside a DIV container with an ID, and then use CSS to target the ID and float that to the right.

    However, where you put that will depend on how the theme in question was coded in the first place.
     
    Dan Schulz, Nov 22, 2007 IP