Jump to content

Archived

This topic is now archived and is closed to further replies.

bhowton

Ad Padding

Recommended Posts

bhowton

I have an adsense ad of dimensions 300x250 at the bottom of my homepage. The column it is in has a width of 307px. Yet, a small portion of the ad is cut from the side. I'm not sure why. The ad is centered in the column. This is not my design. I've tried to pull it left with <div style="float: left">, but this has no effect. Is there a way to pull the ad out of center and to display fully in the column?

 

The site is:  http://www.hairydogreview.com/. The ad is located about 2/3 down the page, after a fullwidth black background video section.

Share this post


Link to post
Share on other sites
fliptheu

Hi, I used Chrome inspector. Found this to do the trick:

 

.adroll-block a img{

    margin:0 0 0 -8px;

}

 

.adroll-block a{

   text-align:none;

}

 

OR

 

.adroll-block a img{

    margin:0 0 0 -10px;

}

 

with no text align targeting.

 

Hope that helps!


fliptheu

"Finding beauty one picture and one pixel at a time."

http://www.fliptheu.com

Share this post


Link to post
Share on other sites
bhowton

Unfortunately it didn't. From what I see in Dev Tools, the element is linked to all media, I think through a @media tag. I'm not sure where you found the .adroll-block class. It doesn't work on the site. Anyway, thanks for trying.

Share this post


Link to post
Share on other sites
bhowton

fliptheu Here's the code that worked for me. I don't know why I didn't think of this before. It's too obvious now.

 

#sb_primaryitc0gy .pl-section-pad {padding: 0 1px 0 1px;}

 

Target widget id then the generic class for section padding.

 

Thanks again for your help.

Share this post


Link to post
Share on other sites
fliptheu

fliptheu Here's the code that worked for me. I don't know why I didn't think of this before. It's too obvious now.

 

#sb_primaryitc0gy .pl-section-pad {padding: 0 1px 0 1px;}

 

Target widget id then the generic class for section padding.

 

Thanks again for your help.

 

Glad you found it out! 


fliptheu

"Finding beauty one picture and one pixel at a time."

http://www.fliptheu.com

Share this post


Link to post
Share on other sites

×