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 ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
| The Following User Says Thank You to ptt81 For This Useful Post: | ||
ridexbuilder (05-12-2009) | ||
|
#2
| ||||
| ||||
| 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
| |||
| |||
| Thanks for the reply but that doesn't help me much, can you be more specific? change the table how? |
|
#4
| ||||
| ||||
| I'm also interested in more detail...
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#5
| ||||
| ||||
| It is called html. Wrap it in a div. Google "how to center div"
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** 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 User Manual - osCMax Templates - Advanced Template Tutorial |
|
#6
| |||
| |||
| Quote:
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
| ||||
| ||||
| 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
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#8
| ||||
| ||||
| 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 *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** 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 User Manual - osCMax Templates - Advanced Template Tutorial |
|
#9
| ||||
| ||||
| 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?
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** 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 User Manual - osCMax Templates - Advanced Template Tutorial |
|
#10
| ||||
| ||||
| 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
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). Last edited by ridexbuilder; 05-08-2009 at 07:46 AM. |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Mopics additional images to product pages | pakrat | osCMax v2 Features Discussion | 20 | 08-15-2009 05:13 PM |
| Enhanced Dynamic MoPics & Images stored in directories | ridexbuilder | osCMax v2 Customization/Mods | 42 | 05-15-2009 11:02 AM |
| Oscmax Images Gallery Problem | pdr | osCMax v2 Customization/Mods | 0 | 12-19-2007 07:33 PM |
| MoPics Images Per Row | im2smrt4u | osCMax v2 Features Discussion | 5 | 09-15-2006 09:58 AM |
| MoPics External Images | hrhstephen | osCMax v2 Customization/Mods | 2 | 07-30-2005 04:04 AM |