Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Posts
    47
    Plugin Contributions
    0

    help question How to make Images in the various areas/boxes display in a 'grid' or horizontally?

    Hello!
    My website= www.heresyminiatures.com/shop

    I'm trying to work out how to make product images in some of the boxes such as 'Customers also purchased' display in a nice neat series of rows rather than one long vertical list.

    So when someone looks at the page they see several products alongside each other rather than having to scroll down a foot to get to the bottom of the list of products. (I would also like to be able do this to the Category and sub-Category icons!)

    As an example look at this product's associated products in the 'Customers also bought' box:

    http://www.heresyminiatures.com/shop...roducts_id=147

    I've got various zen-cart self-help books and haven't been able to track this down yet...

    Is there a piece of code that should be altered or added so that images display across the page instead of down?

    (And which files control the arrangement of the category icons and the 'customers also bought' box so i can edit them?)

    All help appreciated. Please note i am very much a 'idiot's guide to' kind of developer, so any instructions kept simple, please!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    You can add this to your stylesheet:

    .centerBoxContentsAlsoPurch {float:left;}

    I don't have an Idiot's Guide, but there is a very handy Idiot's Tool :


    Install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

    Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

    Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. An essential tool.

    Some prefer Firebug, which does much the same thing.

    (If you're using Firefox 4, you'll need to remap the editor shortcut, since Firefox has appropriated Ctrl-Shift-E for an internal function - I use Ctrl-Shift-Q.)

    After that, it's mostly about understanding CSS.

  3. #3
    Join Date
    Jul 2011
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    Thanks a lot, Stevesh!

  4. #4
    Join Date
    Jul 2011
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    Still need to find a way to do the same with the category icons, though... any ideas?

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    You didn't install the cool tool ...

    Add .categoryListBoxContents to the rule mentioned above:

    .centerBoxContentsAlsoPurch, .categoryListBoxContents {float:left;}

    Then ask your template designer why he/she changed the float:left; for all these elements to float:center;. A stock Zencart site behaves the way you want it to.

  6. #6
    Join Date
    Jul 2011
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    I reckon because he's an idiot? ie it was me, tweaking things probably to see if anything/what changed when changing the template to make it look like i wanted it to. Probably altered the wrong thing with no visible effect on the homepage I was looking at.

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to make Images in the various areas/boxes display in a 'grid' or horizontally

    Then you need to give yourself a stern talking-to, and remind you that if you change CSS statements that have multiple elements, you need to separate the element you're looking to change from the others in the rule. In this case, if you want to float the logo left, you would remove #logo to its own rule and style it there:

    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    width: 100%;
    text-align:center;
    float: center;
    }

    #logo {float:left;}

 

 

Similar Threads

  1. how to make the attribute's value show horizontally ,not Vertically
    By win8win in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Oct 2012, 11:17 AM
  2. Attribute Images Won't Display Horizontally
    By aprilmarie in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 30 Jan 2012, 06:24 PM
  3. How do I make attributes horizontally?
    By ttmb33 in forum Customization from the Admin
    Replies: 1
    Last Post: 31 Jul 2009, 08:08 PM
  4. How? Display boxes horizontally near footer.
    By WattsTubeAudio in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 22 Feb 2009, 10:37 PM
  5. How do I make categories on main page appear horizontally with images?
    By aaelghat in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Mar 2007, 10:20 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