View Full Version : Resolved Adds right on the logo
dkblackhawk
01-17-2009, 08:43 PM
What is the code/stylesheet to have ads on the logo? For those who don't know what i mean here is a picture http://i40.tinypic.com/209ltn7.jpg
dkblackhawk
01-17-2009, 11:03 PM
someone help me please?
mada9369
01-17-2009, 11:15 PM
tester url?
dkblackhawk
01-17-2009, 11:25 PM
uh if you mean a example this is a site www.n4g.com
dkblackhawk
01-17-2009, 11:51 PM
someone help me please?
Snookerman
01-17-2009, 11:56 PM
Don't really get your question. If you want ads, look into Google AdSense (https://www.google.com/adsense/).
Good luck!
dkblackhawk
01-18-2009, 02:48 AM
Don't really get your question. If you want ads, look into Google AdSense (https://www.google.com/adsense/).
Good luck!
ok i dont need ads i have already a ad source i just want to know the code to put the ads right on the logo. Sorry if my question didn't make sense.
Can we see your code and a link to your page please.
dkblackhawk
01-18-2009, 03:27 AM
Can we see your code and a link to your page please.
uh i don't have a code for it but heres my site...www.insanegaming.co.cc
and if you mean a ad code here it is
edit:
some of the code got sensored out so send me a pm for it
lanta99
01-18-2009, 05:45 AM
if you have a wysiwyg editor, you could crop out the logo, and make tables to put the ad in.
Snookerman
01-18-2009, 10:44 AM
No no no, don't do that! No wysiwyg and no tables! Just put the ad in your top div, for example:
<div id="top">
<img src="/wp-content/themes/gamezine/images/logo.png"/>
<div class="description"></div>
<div id="top-ad">Ad goes here, image or text or whatever</div>
</div>
Then add this to your css code:
#top {
position: relative;
}
#top-ad {
position: absolute;
right: 0;
}
Good luck!
dkblackhawk
01-18-2009, 04:39 PM
No no no, don't do that! No wysiwyg and no tables! Just put the ad in your top div, for example:
<div id="top">
<img src="/wp-content/themes/gamezine/images/logo.png"/>
<div class="description"></div>
<div id="top-ad">Ad goes here, image or text or whatever</div>
</div>
Then add this to your css code:
#top {
position: relative;
}
#top-ad {
position: absolute;
right: 0;
}
Good luck!
thanks ill try
edit: well i tried but i just cant seem to get the ads on the logo it only goes below it. Ok now i fixed my site and i tried the ad thing again and it didnt work o.o maybe i need to give someone trustworthy admin acess to see if it works( only to edit the template.)
Snookerman
01-18-2009, 05:09 PM
Add this to the code:
#top {
position: relative;
}
#top-ad {
position: absolute;
right: 0;
top: 0;
}
Good luck!
lanta99
01-18-2009, 05:59 PM
No no no, don't do that! No wysiwyg and no tables! Just put the ad in your top div, for example:
<div id="top">
<img src="/wp-content/themes/gamezine/images/logo.png"/>
<div class="description"></div>
<div id="top-ad">Ad goes here, image or text or whatever</div>
</div>
Then add this to your css code:
#top {
position: relative;
}
#top-ad {
position: absolute;
right: 0;
}
Good luck!
what's so bad about wysiwyg editors and tables?
Tables are stupid. (http://www.hotdesign.com/seybold/everything.html)
WYSIWYG Editors tend to screw up.
dkblackhawk
01-18-2009, 06:39 PM
ok well i tried it again and now its at the top...i think it would be easier i if i could give someone admin acess or just the template file and give them the code.
Snookerman
01-18-2009, 06:44 PM
Well where do you want it to be? You can adjust it using the css code. For example:
#top-ad {
position: absolute;
right: 0;
top: 0;
}
will put the ad in the top right corner of the #top div. This:
#top-ad {
position: absolute;
right: 100px;
top: 20px;
}
will put the ad 100px from the right and 20px from the top. Please be more specific about where you want it placed.
dkblackhawk
01-18-2009, 07:17 PM
Well where do you want it to be? You can adjust it using the css code. For example:
#top-ad {
position: absolute;
right: 0;
top: 0;
}
will put the ad in the top right corner of the #top div. This:
#top-ad {
position: absolute;
right: 100px;
top: 20px;
}
will put the ad 100px from the right and 20px from the top. Please be more specific about where you want it placed.
well to be placed to right next where it says insane gaming
Snookerman
01-18-2009, 07:31 PM
So play with the values until you get it where you want it. You can even change from right to left and adjust it relative to the left side.
Good luck!
dkblackhawk
01-18-2009, 08:25 PM
thanks to everyone! i got it working :D
Snookerman
01-18-2009, 09:01 PM
You're welcome, glad to help! You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.
Just one thing I want to point out, if you leave out this piece of code:
#top {
position: relative;
}
your ad will move when you resize the width of your browser window.
Good luck with your site!
dkblackhawk
01-18-2009, 10:25 PM
You're welcome, glad to help! You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.
Just one thing I want to point out, if you leave out this piece of code:
#top {
position: relative;
}
your ad will move when you resize the width of your browser window.
Good luck with your site!
i just noticed that problem too and i put in that code but the ad still moves when the page width gets changed. I guess i ain't done yet.
Snookerman
01-19-2009, 08:30 AM
What page are you testing this on? I tried it on your home page and it worked fine. Try clearing your cache. If you still have problems post a link to the page where you test this.
dkblackhawk
01-19-2009, 01:56 PM
What page are you testing this on? I tried it on your home page and it worked fine. Try clearing your cache. If you still have problems post a link to the page where you test this.
kk will do
edit
...now its working! :D yes! thank you !
Snookerman
01-19-2009, 04:11 PM
You're welcome, glad to help!
Good luck with your site!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.