natsegal
10-12-2006, 02:21 PM
I'm hoping you can help me. I have a problem with CSS that I'm using in WordPress. Essentially I want text in my posts to wrap around an Adsense box.
Here's the code I've been using:
<div style="float:left; margin:7px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9244062874916987";
google_alternate_ad_url = "http://www.alternateurl.com/show?memid=832&size=300x250";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="4071658591";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "333333";
google_color_text = "333333";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </div>
The problem is this, when I use Firefox, the code works perfectly and the text wraps around the AdSense the way I want it to, but in IE6 it won't. No matter what I do, the text won't wrap. I've tried different tags, attempting to insert the code into the PHP files and I can't get it to work consistently. Sometimes it appears to wrap at one browser size but when I click on maximize it all goes to pieces.
Does anyone know of a workaround/hack that will work?
Any help would be greatly appreciated.
Here's the code I've been using:
<div style="float:left; margin:7px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9244062874916987";
google_alternate_ad_url = "http://www.alternateurl.com/show?memid=832&size=300x250";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="4071658591";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "333333";
google_color_text = "333333";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </div>
The problem is this, when I use Firefox, the code works perfectly and the text wraps around the AdSense the way I want it to, but in IE6 it won't. No matter what I do, the text won't wrap. I've tried different tags, attempting to insert the code into the PHP files and I can't get it to work consistently. Sometimes it appears to wrap at one browser size but when I click on maximize it all goes to pieces.
Does anyone know of a workaround/hack that will work?
Any help would be greatly appreciated.