Jump to content
Sign in to follow this  
1finecookie

Ad above header...white space?

Recommended Posts

cmunns

I would create a div around your ad code and make the background of it transparent.

Share this post


Link to post
Share on other sites
1finecookie

Hmmm...well how would I do that? I tried a couple things but they're not working. How can I make the white space transparent AND get it to center? I'm just not familiar enough with this theme I guess.

Share this post


Link to post
Share on other sites
catrina

How did you implement the ad code? Did you just add it to the Custom Code area or in any theme files?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
1finecookie

In the header.php file.

Share this post


Link to post
Share on other sites
catrina

Here's an example of how the DIV can be added around the ad code:

<DIV CLASS="DIVNAME">
	
	AD CODE GOES HERE
	
	</DIV>
DIVNAME = name of the DIV layer (to distinguish it from other DIV layers) The DIVNAME will also be used in the CSS styling that will make the DIV layer transparent. For example, this is the CSS that would be used:
div.DIVNAME {background: transparent;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
1finecookie

Nope. Nothing is working! I'm so incredibly frustrated!! lol

Share this post


Link to post
Share on other sites
1finecookie

Ok I got the white space part but I can't get it to center. For the div areas I just copied and pasted what you had but for the CSS I have this: div.header-ad {width: 728; height: 90;} div.header-ad {background: #9ca7bb;} div.header-ad {align="center"}

Share this post


Link to post
Share on other sites
kastelic

Hmm I don't see your ad, but to center an element do this:

.header-ad {margin: 0 auto}

Share this post


Link to post
Share on other sites
1finecookie

Jimmy, it's up still but even using that code is not centering it. How in the world can I get this to center?

Share this post


Link to post
Share on other sites
kastelic

Oh, I didn't notice how you had the width. You need to have a width set for the margin thing to work and you need to specify a unit of width, so try this:

.header-ad {
	width: 728px;
	margin: 0 auto;
	}

Also, might want to check your site in Chrome. It doesn't seem to be appearing in that browser.

Share this post


Link to post
Share on other sites
1finecookie

LOL Jimmy, that DID center it but now the white space is on the sides again. Here is what I have so far:

	div.header-ad {width: 728; height: 90;}
	div.header-ad {background: transparent;}
	div.header-ad {align: center;}
	
	.header-ad {
	width: 728px;
	height: 90px;
	margin: 0 auto;
	}

Share this post


Link to post
Share on other sites
1finecookie

Oops...scratch that...this is what I have:

div.header-ad {width: 728; height: 90;} div.header-ad {background: transparent;} .header-ad { width: 728px; height: 90px; margin: 0 auto; }

Share this post


Link to post
Share on other sites
Kate

Hey Sean, A link would help us help you figure out the issue.

Share this post


Link to post
Share on other sites
cmunns

It looks to be inheriting the page-canvas color, but I'm wondering if this sort of thing needs to be changed in the javascript the generates the iframe.

Share this post


Link to post
Share on other sites
1finecookie

How would I change that Adam?

Share this post


Link to post
Share on other sites
cmunns

Actually I think your CSS is just not correct. Use this ` div.header-ad { width: 100%; height: 90px; margin: 0 auto; text-align: center; background: #9ca7bb; } ` Make sure that you don't have other left over rules overriding what I put above.

Share this post


Link to post
Share on other sites
1finecookie

IT WORKED!!! Thank you so much Adam!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×