| | #1 |
| HyperActive Warrior Join Date: 2009
Posts: 428
Thanks: 178
Thanked 13 Times in 13 Posts
|
Will someone please look at Natural Anxiety Supplements | and tell me what I'm doing wrong? I'm trying to have the text wrap around the ad block, but there's not enough space separating the two and the ad would look better if the top of it was level with the text. What code do I need to make the ad block and text look right? |
| | |
| |
| | #2 |
| Active Warrior Join Date: 2010 Location: Hawaii
Posts: 65
Thanks: 4
Thanked 12 Times in 12 Posts
|
Try using a div block. This works well for me. Use the margin-left attribute to adjust the spacing between the ad and the text. <div style=”display:block;float:right;margin-left:6px;”> < adsense code here> </div> |
| |
| | #3 |
| HyperActive Warrior Join Date: 2009
Posts: 428
Thanks: 178
Thanked 13 Times in 13 Posts
|
I am already using a <div> block.<div style=”display:block;float:right;margin: 5px 5px 5px 5px;”>adsense script </div> I have now gone to a smaller ad (250 x 250), and overall it does look better, but still the top of the ad is below the top of the text. I would prefer to be using the larger ad (300 x 250), but will settle for the small one if need be. Actually, it only looks better when google puts in regular text ads, instead of the image ads, so I still have a problem. EDIT: changed the adsense settings so that I only have text ads. Now, does anyone know how to get the tops level? |
| | |
| |
| | #4 |
| Advanced Warrior War Room Member Join Date: 2009 Location: Chesterton, IN
Posts: 936
Thanks: 128
Thanked 187 Times in 146 Posts
|
You might try using negatives. Be sure to cross browser check. You could use a little padding to the left, as shown here. <div style="display:block;float:right;margin: -25px 0 0 5px; padding-left:5px;"> |
|
yes, I am....
| |
| |
| The Following User Says Thank You to Ken Durham For This Useful Post: |
| | #5 |
| HyperActive Warrior Join Date: 2009
Posts: 428
Thanks: 178
Thanked 13 Times in 13 Posts
|
Thanks so much, Ken...that was exactly what I needed. You've saved my day! |
| | |
| |
| | #6 |
| Advanced Warrior War Room Member Join Date: 2009 Location: Chesterton, IN
Posts: 936
Thanks: 128
Thanked 187 Times in 146 Posts
| |
|
yes, I am....
| |
| |
|
| Bookmarks |
| Tags |
| block, text |
| |