Title: Ads between posts: Styling
Last modified: August 22, 2016

---

# Ads between posts: Styling

 *  Resolved [creativevegans](https://wordpress.org/support/users/creativevegans/)
 * (@creativevegans)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/)
 * Hi,
    I have managed to place an ad (adsense) between the first and second post
   on the homepage of my blog. I did this by inserting some code in the main index
   template of my child theme. The problem now is how to style the ad. As you can
   see by visiting my blog, the ad is smack on top of the title of my second post.
   I have tried all sorts of way of calling the adsense ad in the stylesheet to 
   add a margin underneath, but to no avail. If any of you know how I could add 
   some space between the ad and the post, please help me! Thank you so much! Sincerely,
   Maria creativevegancooking.com

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * (@hostawesome)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635761)
 * Hi Maria,
 * I don’t know if that’s the best way to implement the ad, just as an aside.
 * To answer your question, I think you can probably surround your ad with a div
   and style it that way.
 * Example:
 *     ```
       <div style="margin-bottom:20px">
       (your ad code)
       </div>
       ```
   
 *  Thread Starter [creativevegans](https://wordpress.org/support/users/creativevegans/)
 * (@creativevegans)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635985)
 * Great! It works. Thanks!
    Where would you suggest to put the ads for maximum 
   benefit (I don’t want the site to look spammy)?
 *  [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * (@hostawesome)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635987)
 * That’s a very hard question to answer in terms of spammy-ness lol.
 * To some, ads will always look spammy, regardingless of where or how.
 * I guess mixing it in with your content might be the best for ‘maximum benefit’,
   but you might want to get second and third opinions as well.
 *  Thread Starter [creativevegans](https://wordpress.org/support/users/creativevegans/)
 * (@creativevegans)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635988)
 * Thank you. I value your input.
 *  [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * (@hostawesome)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635989)
 * No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Ads between posts: Styling’ is closed to new replies.

## Tags

 * [ads](https://wordpress.org/support/topic-tag/ads/)
 * [between posts](https://wordpress.org/support/topic-tag/between-posts/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/ads-between-posts-styling/#post-5635989)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
