Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2018
    Posts
    16
    Plugin Contributions
    0

    Default attribute images layout - best practices

    Hi y'all... What's best practice for customizing the layout of attribute images (e.g. color swatches)? I know that some degree of control is allowed via the admin but I'm just trying to figure out the best way to layout color swatch attribute images in a responsive way without setting the number of images per row or having intrusive line breaks disrupt the flow as a window size changes and the amount of images set no longer fits on a line. I realize that the line breaks are hard-coded into attributes.php but I don't necessarily want to affect that code unless you expert zenners would advise me to. I feel like with css there should be an easy way to show the attribute images and flow them to the next line if need be, without setting hard line breaks. Advice?

    As always, thanks in advance!

    ps - I do realize I'm not on the current version but I'm getting there. Baby steps.

  2. #2
    Join Date
    Mar 2018
    Posts
    16
    Plugin Contributions
    0

    Default Re: attribute images layout - best practices

    I seem to have figured it out a solution... a combination of tweaking the css for attribImg to set a specific width and heigh plus setting the 'attributes images per row" to a high number (in this case 100), the rows to 0, and then matching the image width and height I set in the css seems to create a nice, tight display of color swatch options that flows nicely without unsightly breaks.

 

 

Similar Threads

  1. image -- best practices questions
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Oct 2010, 11:01 PM
  2. New to modding ZC- best practices?
    By BassFace in forum Contribution-Writing Guidelines
    Replies: 7
    Last Post: 5 Dec 2009, 02:04 AM
  3. Upgrade best practices
    By swguy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 2 Nov 2006, 07:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR