PDA

View Full Version : HTML align help needed


viper357
02-22-2009, 08:31 AM
Hi everyone

I need a bit of help with aligning some banners in my forum please. :)

What I am trying to do is to get the banners to be placed on the far right next to the last post column. I tried these two different pieces of code in the Forum Description box:

<br>
<td align="right"><A HREF="http://www.ecoaquatics.co.za" target="_blank"><IMG SRC="/banners/ecoaquaticsbanner.gif" border="0"></A></td>

and

<br>
<div align="right" width="100%" style="text-align: right"><A HREF="http://www.ecoaquatics.co.za" target="_blank"><IMG SRC="/banners/ecoaquaticsbanner.gif" border="0"></A></div>

As you can see on this page (http://www.marineaquariumsa.com/forumdisplay.php?f=67), the first 3 banners currently sit right next to the end of the text, how do I get them to move all the way to the right?

Thanks.

bananalive
02-22-2009, 12:04 PM
<div width="100%" style="text-align: right; float: right;"><a href="http://www.ecoaquatics.co.za" target="_blank"><img src="/banners/ecoaquaticsbanner.gif" border="0"></a></div>

viper357
02-22-2009, 12:31 PM
<div width="100%" style="text-align: right; float: right;"><a href="http://www.ecoaquatics.co.za" target="_blank"><img src="/banners/ecoaquaticsbanner.gif" border="0"></a></div>
Thanks bananalive but it didn't work, the banner is still on the left :(

mmoore5553
02-22-2009, 01:21 PM
you could actually use CSS to align it very easy ... i sent you a pm

but you could do it like this
<div style="text-align: right; position: absolute; left: 480px; top: 765px;" width="100%"><a target="_blank" href="http://www.ecoaquatics.co.za"><img border="0" src="/banners/ecoaquaticsbanner.gif"/></a></div>

but you would have to do that ...you might have to play alittle with it. The reason it is not centering now is cause there is nothing for it to center. They way vbuleltin is setup you have to add another column and center that way ..

questions or issues let me know . i am would add that and change the variables for each photo..if you use the same numbers you will have them all on top of eaach other ..or the easier way just put another column and label it for banners and put it there ... there might be another way but if i dont see code or how that template is laid out that is best posibble i could come up with ...without seeing the forum of course.