NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page AdSense conflicting with my CSS

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-08-2010, 07:30 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
LikuiD's Avatar
Join Date: Jul 2006
Posts: 283
LikuiD will become famous soon enoughLikuiD will become famous soon enough
 




AdSense conflicting with my CSS


Hi,
I've tried adding AdSense to my site, but it always messes up my page.
This seems to happen only in Chrome and in Safari, but it works fine with IE & Firefox

Here's a sample page I created to show the problem:
deutsched.com/adsense.php

Try displaying it with Chrome & Firefox, and you'll notice the difference

I've tried tracking down the source of the error, and it seems to be that part of the CSS file, however I'm not that good at programming, so I'm unsure of how to fix it:
????: NamePros.com http://www.namepros.com/programming/676173-adsense-conflicting-with-my-css.html

Code:
#header {
position: relative;
height: 85px;
}
Any help would be greatly appreciated.
Thanks !
Last edited by mis_chiff; 09-09-2010 at 06:59 PM.
LikuiD is offline  
Old 09-08-2010, 05:26 PM   #2 (permalink)
NamePros Member
 
un4given[MAD]'s Avatar
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
un4given[MAD] is on a distinguished road
 



I'm not sure that my suggestion is logically correct, but it seems to be working. Anyway, this is better than nothing

So, here is my workaround for this issue:
Try to rearrange your DIV's like this
Code:
<div id="wrap">
	<div id="content-wrap"> ... </div>
	<div id="rightbar"> ... </div>
	<div id="footer"> ... </div>
</div>
As I've found out, the problem is caused by two factors:
1) innatural order of blocks in html flow (left bar, right bar, main content)
2) ad block in the right bar

Hope this helps
__________________
Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all!
un4given[MAD] is offline  
Old 09-09-2010, 12:42 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
LikuiD's Avatar
Join Date: Jul 2006
Posts: 283
LikuiD will become famous soon enoughLikuiD will become famous soon enough
 




Thanks for trying to help un4given
But I've tried that and it didn't work

I decided to change the whole template, I wasn't that convinced about it
And its a new website anyways, so nobody will notice anything

Thanks once again !
LikuiD is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 02:37 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger