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

Image borders

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-14-2010, 10:29 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Image borders

Can someone please tell me a simple way to put a border around 'every' product image, including thumbnails. Cheers
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #2  
Old 10-16-2010, 10:08 AM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Image borders

add this to your CSS. You can change the style, color and width to whatever you like.

.product-details img {
border-style: solid;
border-color: #ff0000;
border-width: 1px;
}
__________________
4.4.1 <-- Live
X-payments <--not installed
Reply With Quote
  #3  
Old 10-18-2010, 05:58 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Re: Image borders

That's great! It worked a treat, thank you very much!

I do need the same for all product pics on the site, thumbnails and category pics. If you could help further I would be most grateful.
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #4  
Old 10-18-2010, 06:08 AM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Image borders

Let me know what the site URL is and I will take a look.
__________________
4.4.1 <-- Live
X-payments <--not installed
Reply With Quote
  #5  
Old 10-18-2010, 06:14 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Re: Image borders

www.eternalflow.biz
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #6  
Old 10-18-2010, 06:28 AM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Image borders

Simply change the .product-details from the last one to .content and see if that is what you are looking for. So it looks like this:
Quote:
.content img {
border-style: solid;
border-color: #ff0000;
border-width: 1px;
}
__________________
4.4.1 <-- Live
X-payments <--not installed
Reply With Quote
  #7  
Old 10-18-2010, 08:06 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Re: Image borders

Once again, thank you!.. That's the product details pic and thumbnails done... the only pics without the border now are the category pics. Is that easy to solve?
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #8  
Old 10-18-2010, 08:15 AM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Image borders

Just add the same border to the center-main div images.

Quote:
#center-main img {
border-color:#51050F;
border-style:solid;
border-width:3px;
}
__________________
4.4.1 <-- Live
X-payments <--not installed
Reply With Quote
  #9  
Old 10-18-2010, 09:04 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Re: Image borders

You don't know how much stress you've saved me from! Your knowledge is unbelievable!
The centre main images now have a border too! There is an issue with the table size for these images obviously being too small as the right hand border is cut off, probably as the photo is larger than the table size. Because of the amount of help you've given so far I feel embarrassed asking where I'd alter this sizing. If you know, my day would be complete, but if not then you have already helped more than you know... Thank you
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #10  
Old 10-18-2010, 11:38 AM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Image borders

I just sent you a PM. You also might want to think about doing something with your speedbar at the top of the page. It is barely visible with some page widths.
__________________
4.4.1 <-- Live
X-payments <--not installed
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:43 AM.

   

 
X-Cart forums © 2001-2020