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

Product Image CSS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-06-2008, 09:20 AM
 
RobinBraves RobinBraves is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: FL
Posts: 98
 

Default Product Image CSS

Is there a way to add CSS styles to the thumbnail and product Image? I am wanting to add some effects (glow, border) to them both the same.
__________________
Version 4.1.11
Reply With Quote
  #2  
Old 03-06-2008, 09:28 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product Image CSS

Sure, just edit product_thumbnail.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-06-2008, 09:30 AM
 
RobinBraves RobinBraves is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: FL
Posts: 98
 

Default Re: Product Image CSS

Oh okay. I wasn't sure if there was a style in the default css file for thumbnail and product image already.
__________________
Version 4.1.11
Reply With Quote
  #4  
Old 03-06-2008, 09:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product Image CSS

Not by default I don't think
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-06-2008, 09:59 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Product Image CSS

You could try these, I think 4.1.8 does the same...

locate the following in skin1/skin1.css for Product page thumbnail image...
.PImgBox { /*and add/change the border here*/ }
or if it fails add to CSS with...
.PImgBox IMG { border: 5px solid #FF0000; /* a test red border direct to IMG */ }

the same for Categories page thumbnail images, locate in skin1.css ...
.PListImgBox { /*and add/change the border here*/ }
or add directly to img in CSS with...
.PListImgBox IMG { border: 5px solid #FF0000; /* a test red border direct to IMG */ }
__________________
Doms
kube v4.1.9
Reply With Quote
  #6  
Old 03-06-2008, 10:28 AM
 
RobinBraves RobinBraves is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: FL
Posts: 98
 

Default Re: Product Image CSS

Thank you!

I am not sure why this is not working:
------------------------------------------------------
.PImgBox IMG {
Filter: Glow(Color=#00FF00, Strength=20);
}
------------------------------------------------------


I used the border style first and it worked, but I removed that and am trying this filter. I do understand this only works in IE, but still want to use it. Any idea why it does not work.

JUST NOTICED:
When I reload the page with the image on it, I see the glow underneath and then the image loads right overtop of that style. It's almost like "the style is happening underneath the image rather than TO the image".

Here is an example of it working on another website:
http://www.fred.net/dhark/demos/css/css_filter_examples.html
__________________
Version 4.1.11
Reply With Quote
  #7  
Old 03-06-2008, 10:45 AM
 
RobinBraves RobinBraves is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: FL
Posts: 98
 

Default Re: Product Image CSS

Nevermind, I figured it out.
__________________
Version 4.1.11
Reply With Quote
  #8  
Old 03-06-2008, 10:47 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Product Image CSS

um not sure about IE proprietary code.

Perhaps try an assortment of
position: absolute;
or
position: relative;

with or without
z-index: 999;
__________________
Doms
kube v4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:18 AM.

   

 
X-Cart forums © 2001-2020