Hello,

I am using image ads in a block on the sidebar on my site - but I don't like how the ads are grouped together so tightly, and I would like them to be centered in the sidebar. Is there any way to do this using CSS styles while still using the JavaScript method of displaying the ads? I don't want to revert back and use the Raw system of uploading the ads.

Thanks!

Comments

jeremy’s picture

Sure, just style them exactly as you would if you were using the raw display method. CSS will work the same, either way.

naitsirhc26’s picture

But what ids or classes would you use? When you look at the source code - it's a javascript file. And if you were to style the divs surrounding the Javascript file - it would apply those styles to the entire block.

My only other thought would be to use the img tag in my css style. Would that actually style each individual image within the javascript?

So something like:

#ad_group_3 img {
padding-bottom: 5px;
}

naitsirhc26’s picture

Priority: Normal » Minor
Status: Active » Fixed

Okay, using the code I entered above worked. Thanks for the help Jeremy!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.