| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
centering a banner | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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="">
__________________
x cart v 5.2.10 ver 4.7.7 Gold Plus |
|||||||
#2
|
|||||||
|
|||||||
Re: centering a banner
<div style="text-align:center;"><img src="{$ImagesDir}/banner10.gif" alt=""></div>
|
|||||||
#3
|
|||||||
|
|||||||
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
__________________
x cart v 5.2.10 ver 4.7.7 Gold Plus |
|||||||
#4
|
|||||||
|
|||||||
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
|
|||||||
#5
|
|||||||
|
|||||||
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
__________________
x cart v 5.2.10 ver 4.7.7 Gold Plus |
|||||||
#6
|
|||||||
|
|||||||
Re: centering a banner
wrap an anchor around the img src, ie: <a href="hyperlink goes here"><img src="thebannerimage.jpg"></a>
|
|||||||
#7
|
|||||||
|
|||||||
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
__________________
x cart v 5.2.10 ver 4.7.7 Gold Plus |
|||||||
#8
|
|||||||
|
|||||||
Re: centering a banner
it should be
Code:
|
|||||||
|
|||
X-Cart forums © 2001-2020
|