Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

centering a banner

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-01-2007, 09:24 AM
 
qwerty qwerty is offline
 

Advanced Member
  
Join Date: Aug 2006
Location: UK
Posts: 94
 

Question 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
Reply With Quote
  #2  
Old 01-01-2007, 02:12 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: centering a banner

<div style="text-align:center;"><img src="{$ImagesDir}/banner10.gif" alt=""></div>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 01-02-2007, 12:40 AM
 
qwerty qwerty is offline
 

Advanced Member
  
Join Date: Aug 2006
Location: UK
Posts: 94
 

Default 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
Reply With Quote
  #4  
Old 01-02-2007, 01:24 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #5  
Old 01-03-2007, 04:12 AM
 
qwerty qwerty is offline
 

Advanced Member
  
Join Date: Aug 2006
Location: UK
Posts: 94
 

Default 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
Reply With Quote
  #6  
Old 01-03-2007, 10:31 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: centering a banner

wrap an anchor around the img src, ie: <a href="hyperlink goes here"><img src="thebannerimage.jpg"></a>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #7  
Old 01-03-2007, 10:43 AM
 
qwerty qwerty is offline
 

Advanced Member
  
Join Date: Aug 2006
Location: UK
Posts: 94
 

Default 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
Reply With Quote
  #8  
Old 01-03-2007, 07:24 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:07 AM.

   

 
X-Cart forums © 2001-2020