Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-22-2008, 04:35 AM   #1 (permalink)
Junior Member
 
Join Date: 03-22-08
Posts: 5
iTrader: 0 / 0%
Latest Blog:
None

cssnewbie is liked by many
Unhappy Pb: align Adsense block on right side

I've tried to align adsense block on the right side (using align, float, or table ) but nothing works . Can someone help me with this as it seems to me that this should be simple but I'm not at ease with css, thanks.

PHP Code:
<div id="blog-name">
<
a>Log Text</a>

<
script type="text/javascript"><!--
google_ad_client "XXX";
/* 468x60, created 3/21/08 */
google_ad_slot "3620415184";
google_ad_width 468;
google_ad_height 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div> 
With

PHP Code:
div#blog-name {
    
fontbold 240%/100Verdanasans-serif;
    
padding12px 12px 0 12px;

cssnewbie is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-22-2008, 05:39 AM   #2 (permalink)
Junior Member
 
Join Date: 12-06-07
Posts: 10
iTrader: 0 / 0%
Latest Blog:
None

WebGodzilla is liked by many
I inserted float: right in the style, and it seems to work... here's the code:
HTML Code:
<HTML> <HEAD> <style> div#blog-name { font: bold 240%/100% Verdana, sans-serif; padding: 12px 12px 0 12px; float: right } </style> </HEAD> <BODY> <div id="blog-name"> <a>Log Text</a> This is the place where Google AdSense should show up <script type="text/javascript"><!-- google_ad_client = "XXX"; /* 468x60, created 3/21/08 */ google_ad_slot = "3620415184"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"/> </div> </BODY> </HTML>
I thought maybe the AdSense code itself changes styles somehow, but that would be strange cos Google engineers should understand that webmasters would want to place it anywhere...
__________________
GPSgenie.com - helps you find the best GPS at the the best price!
WebGodzilla is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2008, 05:39 AM   #3 (permalink)
Contributing Member
 
corneo's Avatar
 
Join Date: 03-06-08
Posts: 641
iTrader: 0 / 0%
Latest Blog:
None

corneo is a jewel in the roughcorneo is a jewel in the roughcorneo is a jewel in the roughcorneo is a jewel in the roughcorneo is a jewel in the roughcorneo is a jewel in the roughcorneo is a jewel in the rough
how many of these do you have on that page already?
__________________
BikerSite.org
corneo is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2008, 06:47 AM   #4 (permalink)
Junior Member
 
Join Date: 03-22-08
Posts: 5
iTrader: 0 / 0%
Latest Blog:
None

cssnewbie is liked by many
Quote:
Originally Posted by WebGodzilla View Post
I inserted float: right in the style, and it seems to work... here's the code:

I thought maybe the AdSense code itself changes styles somehow, but that would be strange cos Google engineers should understand that webmasters would want to place it anywhere...
Hi thanks,

In fact I wanted to align log left and adsense right. But I made a mistake by putting 2 DIV inside the big ones. I tried again by creating 2 independant Div now it works. But seems illogical to me: why can't I create 2 Div inside the parent one ?
cssnewbie is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anybody have the code for placing images next to a rectangle adsense block? kelp Web Design Lobby 1 02-08-2007 08:45 PM
How to align adsense code? fuser Coding Forum 6 10-03-2006 04:05 PM
The Bad Side of AdSense theChronic Webmaster Revenue 6 08-04-2006 10:21 PM
How to align adsense Chris1974 Coding Forum 8 04-27-2006 09:55 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:46 PM.
© Copyright 2008 V7 Inc