![]() |
centering a banner
hi i'm trying to add a banner to my home page can anyone tell me how i go about getting to centre on the page i can get it were i want it but it displays to the left side i need it in the center the txt i have is
<img src="{$ImagesDir}/banner10.gif" alt=""> |
Re: centering a banner
<div style="text-align:center;"><img src="{$ImagesDir}/banner10.gif" alt=""></div>
|
Re: centering a banner
Hi Inebriate i tried what you said but it did'nt change anything you can see what i mean
http://www.computer-outlet.co.uk/shop/home.php |
Re: centering a banner
I looked at the page source and found that your banner is constrained within a table td that you have set the width to 161 and height to 51, you should change that td width to 100% and the height you can leave
|
Re: centering a banner
Hi inebriate thanks that works a treat you couldnt tell me how i could add a hyperlink to this banner could you
thanks |
Re: centering a banner
wrap an anchor around the img src, ie: <a href="hyperlink goes here"><img src="thebannerimage.jpg"></a>
|
Re: centering a banner
hi inebriae you will have noticed that i am new to this so please bare with me i tried the following
<a href="<A href="http://www.computer-outlet.co.uk/shop/home.php?cat=340&catexp=340"><img">http://www.computer-outlet.co.uk/shop/home.php?cat=340&catexp=340"><img src="banner10.gif"></a> but all i get is a small box with an x in it the hyperling on the box works just no image i have tried taking out the old image and leaving it in but still have the box |
Re: centering a banner
it should be
Code:
<a href="http://www.computer-outlet.co.uk/shop/home.php?cat=340&catexp=340"><img src="banner10.gif"></a> |
All times are GMT -8. The time now is 07:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.