Click to See Complete Forum and Search --> : using <div>'s to have a left hand pane on web page
crmpicco
12-01-2007, 08:01 AM
I have been looking for a way to be able to still have my page using <div>'s and not <table>'s - but also have a left column for my Google AdSense adverts....
I'm sure i've seen it done before, just can't seem to find it anywhere just now :-(
This is the page i'm trying to have the layout on
http://www.scottishminis.com/ (would also like the same thing at www.crmpicco.co.uk )
If you scroll down you'll see the vertical Google ad banner is just sitting at the bottom of the page, is this possible to have it as a left hand pane?
Thanks,
Picco
Centauri
12-01-2007, 08:42 AM
You don't need to enclose something in a div just to style or position it - this can often be applied direct to the elements in question. The Google ad bar is an iframe, so simply float it left :<script type="text/javascript"><!--
google_ad_client = "pub-6264697646356100";
//120x600, created 01/12/07
google_ad_slot = "7609489287";
google_ad_width = 120;
google_ad_height = 600;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><iframe name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-6264697646356100&dt=1196519780984&lmt=1196519745&prev_slotnames=7367704540&output=html&slotname=7609 489287&correlator=1196519780984&url=http%3A%2F%2Fwww.scottishminis.com%2F&ref=http%3A%2F%2Fwww.webde veloper.com%2Fforum%2Fshowthread.php%3Ft%3D167489&cc=100&ga_vid=1347093183.1196519770&ga_sid=1196519 770&ga_hid=1585555278&flash=9&u_h=864&u_w=1152&u_ah=836&u_aw=1152&u_cd=32&u_tz=660&u_his=1&u_java=tr ue&u_nplug=20&u_nmime=99" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="120" style="float: left"></iframe>
crmpicco
12-02-2007, 04:18 PM
Cheers for that, but i found a piece of code that seems to do the trick.
Please see: http://www.scottishminis.com/
Picco