| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product Image CSS | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() Sure, just edit product_thumbnail.tpl
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() Not by default I don't think
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() Nevermind, I figured it out.
__________________
Version 4.1.11 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|