black for a reason

HOWTO: Change Nuffnang Ads Positioning

Saturday, September 20, 2008

Not sure any of you face this issue or not, but after I created a new template/design for my blog. I wish to set my nuffnang ads' alignment to left instead of being centered by default.

The best way of course is to use CSS text-align, but can't do it as there's no place for us to place the CSS style coding. I also recall someone did posted some CSS hack for Advertlets quite sometime back, but to my amaze google didn't return anything useful on Nuffnang CSS Hack.

Turn to second resort, I asked nuffnang about it, and this is their reply.


Hi Sian Lerk,

We're very sorry to inform you that our ads are to be placed at the center as it is intended to be at that position to garner the right attention from visitors in order for advertisers to favor the ad space and buy it.


Case close. There's no way I can set the text-align to left then.


Until today, creative light bulb shed some fresh new idea to resolve this issue. It's as simple as wrapping a div tag around the nuffnang ads. Something like this,


<div style="width: 160px; text-align: left;">

<!-- nuffnang -->

<script type="text/javascript">

nuffnang_bid = "........";

</script>

<script type="text/javascript" src="http://synad2.nuffnang.com.my/lmn.js"></script>

<!-- nuffnang-->

</div>


In short, create a div, limit the width to the intended size of your nuffnang ads, and reset the alignment of your div to left :)

Short and sweet. Hope it helps :)

Labels: ,




1 Comments (Post a Comment)

Blogger Tuah Hantu
2:45 AM


bro, here my own code. if you want to make it absolute:

< div style='position:absolute; top:*px; right:*px;'>YourNuffnangCode< /div >

Just put the amount you want your ads to appear at. works for many script.

or maybe you want to change it for bottom and left. just do your own experiment with this code.

ciao!

Links to this post ( Create a Link)

Creative Commons License