osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 05-06-2009, 11:50 PM
Member
 
Join Date: Mar 2009
Posts: 84
Thanks: 16
Thanked 3 Times in 3 Posts
Rep Power: 1
ptt81 is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to ptt81 For This Useful Post:
ridexbuilder (05-12-2009)
  #2  
Old 05-07-2009, 11:09 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-07-2009, 01:22 PM
Member
 
Join Date: Mar 2009
Posts: 84
Thanks: 16
Thanked 3 Times in 3 Posts
Rep Power: 1
ptt81 is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-07-2009, 03:59 PM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,215
Thanks: 129
Thanked 124 Times in 116 Posts
Rep Power: 9
ridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to all
Default Re: Cannot center images gallery for Mopics

I'm also interested in more detail...
__________________
UK-based hosting plans with installation, configuration, support and maintenance.
(& some ad-hoc jobs).


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-07-2009, 08:08 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,736
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 05-08-2009, 12:12 AM
Member
 
Join Date: Mar 2009
Posts: 84
Thanks: 16
Thanked 3 Times in 3 Posts
Rep Power: 1
ptt81 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 05-08-2009, 12:53 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,215
Thanks: 129
Thanked 124 Times in 116 Posts
Rep Power: 9
ridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to all
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
__________________
UK-based hosting plans with installation, configuration, support and maintenance.
(& some ad-hoc jobs).


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 05-08-2009, 07:04 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,736
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 05-08-2009, 07:40 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,736
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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
File Type: jpg mopix-centered.jpg (20.0 KB, 8 views)
__________________
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 05-08-2009, 07:41 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,215
Thanks: 129
Thanked 124 Times in 116 Posts
Rep Power: 9
ridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to all
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
__________________
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 10:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design