View Full Version : How to use the <div></div>?????
joshril
Mar 9th 2005, 12:10 pm
I am trying to put an adsense ad on the right hand side of my home page, and I can't get it to work right?? Also, how do I insert a google toolbar in the free space in my title on the right hand side. When I use the <div></div> code it will go to the right side, but I can't get it exactly where I want it.
Thanks!
nevetS
Mar 9th 2005, 12:26 pm
Just to get you started... You can use CSS and position: absolute to position x and y coordinates exactly. You can also use tables to position things a little bit easier.
There are a lot of wysiwyg editors out there that will write the code for you- like dreamweaver or go-live. Save a copy of an image from the adsense samples page and insert it into your page design. When you have it positioned where you want it, replace the image with your adsense code. It should show the ads in the same place.
J.D.
Mar 9th 2005, 12:30 pm
This should get you started:
<div style="float: right; margin: 20px;">...</div>
J.D.
joshril
Mar 9th 2005, 12:36 pm
thanks... I appreciate it!
jared
Mar 15th 2005, 12:33 pm
or you could setup a class in your css file like
.whatever
{
float: right;
margin: 20px;
}
(or whatever you wanted)
Then just call the class by using <div class="whatever"></div>
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.