| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Detailed Product Images - Thumbnail Widths | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
On a new site I'm building, I'm using some "responsive web design" so that the layout of the site automatically responds to the size of the screen, adjusting as necessary. This technique utilizes Ethan Marcotte's "Fluid Image" concept to resize images on the fly. I have this working great on this site, with one exception - detailed product image thumbnails. These images refuse to resize dynamically. They stay the same width, no matter what. Try resizing your browser window on this page, and you'll notice that the large product image correctly scales as you resize, while the thumbnails do not: http://future.thefutureforward.com/~field/dopp-kit.html I've realized that the width of the divs around the thumbnails (.dpimages-icons-box) is set by the configuration setting "Maximum width of a detailed product image thumbnail" in the detailed product image settings in the admin. This is a required field in the admin and I've tried overriding that width setting by hacking "SITE/MODULES/DETAILED_PRODUCT_IMAGES/PRODUCT_IMAGES.PHP" to no avail. If anyone has any ideas as to why those images aren't resizing, and how to UNSET the fixed width of the divs around the images, that would be amazing! Thanks so much.
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Are you using generated thumbnails or uploaded ones?
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
![]() I think detailed image thumbs are always generated.
And I actually got it working by placing a div around each individual thumbnail, and then using Ethan's responsive design formula for the width and margin percentages. Check it out by resizing your browser here: http://future.thefutureforward.com/~field/dopp-kit.html
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
|
|||
X-Cart forums © 2001-2020
|