osCmax v2.5 User Manual
Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Cannot center images gallery for Mopics

This is a discussion on Cannot center images gallery for Mopics within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi guys, im trying to get my images gallery (the smaller thumbs images) to center inside a table data cell ...

      
  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Cannot center images gallery for Mopics

    Hi guys, im trying to get my images gallery (the smaller thumbs images) to center inside a table data cell but it will not because the css code for mopics uses the "float: left;" which if removed it will put all the images in one very long column, looks bad. I've tried "margin: 0px auto;" but doesn't work. Is there anyway around this?

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Cannot center images gallery for Mopics

    Change the table in your template that pertains to the display of mo-pics
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Re: Cannot center images gallery for Mopics

    Thanks for the reply but that doesn't help me much, can you be more specific? change the table how?

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Cannot center images gallery for Mopics

    I'm also interested in more detail...
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Cannot center images gallery for Mopics

    It is called html. Wrap it in a div. Google "how to center div"
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Re: Cannot center images gallery for Mopics

    Quote Originally Posted by michael_s View Post
    It is called html. Wrap it in a div. Google "how to center div"

    Hi Michael, I can't get this to work, I have tried pretty much everything inside the "dynamic_mopics.css" where the class "screenshots" is to something like this

    .screenshots {
    float: left; (if I remove this, the pics will show in one column instead of rows)
    padding: 10 0 10 10;
    width: 20%; /* the width sets the number of images per row (i.e., 50% = 2 per row, 33% = 3 per row, 25% = 4 per row, 20% = 5 per row, etc) */
    margin: option listed below;
    }

    here are the options I have already tried for margin alignment without any luck, may be im doing something wrong.

    margin-left: auto;
    margin-right: auto;
    margin: 0 auto;
    margin: auto 0;

    Hope you could give us some better advice. Thanks

  7. #7
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Cannot center images gallery for Mopics

    Been down that same route, plus a 'center' tag within product_info.tpl.php.

    Resizing the table to suit the number of elements - forget it
    Hosting plans with installation, configuration, contributions, support and maintenance.

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Cannot center images gallery for Mopics

    Seems to work just fine for me. Perhaps you are just going about it incorrectly, or I am not understanding what you are trying to do.

    Can you post a picture or describe more clearly what you want compared to what you are getting?
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Cannot center images gallery for Mopics

    Here is a screenshot of 3 pics centered in the table. All I did was change the width of .screenshots to 33% in dynamic_mopics.css.

    Is this what you are talking about?
    Attached Images Attached Images
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Cannot center images gallery for Mopics

    Hi,
    (That's cheating )

    I've set 33%, to give 3 thumbnails in a row.
    The tested product only has two additional thumbnails, so it would be preferable to have these displayed in the centre of the 'additional images' box.

    Additionally, though a real 'nicety', the additional images box occupies the full width of the product info area. Setting both the header and 'text' area to 80% is trivial but how to get the complete box to be centred within the product info area, doesn't seem to be.

    Thanks.

    P.S. I'd buy it for 15bucks (for a runaround) but the shipping costs will be a bit gross
    Last edited by ridexbuilder; 05-08-2009 at 07:46 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Page 1 of 3 123 LastLast

Similar Threads

  1. Dynamic Mopics additional images to product pages
    By pakrat in forum osCMax v2 Features Discussion
    Replies: 20
    Last Post: 08-15-2009, 05:13 PM
  2. Enhanced Dynamic MoPics & Images stored in directories
    By ridexbuilder in forum osCmax v2 Customization/Mods
    Replies: 42
    Last Post: 05-15-2009, 11:02 AM
  3. Oscmax Images Gallery Problem
    By pdr in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 12-19-2007, 07:33 PM
  4. MoPics Images Per Row
    By im2smrt4u in forum osCMax v2 Features Discussion
    Replies: 5
    Last Post: 09-15-2006, 09:58 AM
  5. MoPics External Images
    By hrhstephen in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 07-30-2005, 04:04 AM

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
  •