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&amp;dt=1196519780984&amp;lmt=1196519745&amp;prev_slotnames=7367704540&amp;output=html&amp;slotname=7609 489287&amp;correlator=1196519780984&amp;url=http%3A%2F%2Fwww.scottishminis.com%2F&amp;ref=http%3A%2F%2Fwww.webde veloper.com%2Fforum%2Fshowthread.php%3Ft%3D167489&amp;cc=100&amp;ga_vid=1347093183.1196519770&amp;ga_sid=1196519 770&amp;ga_hid=1585555278&amp;flash=9&amp;u_h=864&amp;u_w=1152&amp;u_ah=836&amp;u_aw=1152&amp;u_cd=32&amp;u_tz=660&amp;u_his=1&amp;u_java=tr ue&amp;u_nplug=20&amp;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