| Member with 1,010 posts. THREAD STARTER | | Join Date: Dec 2011 Location: Johannesburg South Africa Experience: Intermediate | |
Solved: Centre align AdSense javascript I have opted to include some Google AdSense slots in one of our sites which is also in Google Adwords. (See if it won't pay for itself!)
The dynamic "links" are via javascript viz:- Code: <div id=ad_slice">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1181259325345481";
/* Gearbox Repair 1 */
google_ad_slot = "0559324299";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> ...for which I have added some css... Code: #ad_slice
{
width:800px;
text-align: center;
padding-left:10px;
padding-right:10px;
margin-left:10px;
margin-right:10px;
} ...in order to try and centre the feed...but unfortunately it is aligning left and won't centre
Q.
How can I centre align such feeds?
__________________ "I expect to pass through this world but once. Any good, therefore, that I can do or any kindness I can show to any fellow creature, let me do it now. Let me not defer or neglect it for I shall not pass this way again." |