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; (Still get a generic error trying to do an attachment)....
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#11
| ||||
| ||||
![]() (Still get a generic error trying to do an attachment).
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#12
| ||||
| ||||
| Trivial to center the mopics box on the product page. I just wrapped the existing block in a div with its own centering ID. Took 2 seconds. New code: HTML Code: <div id="content2"> <div class="screenshotsHeader"> <div class="screenshotsHeaderText"><?php echo TEXT_OTHER_PRODUCT_IMAGES; ?></div> </div> <div class="screenshotsBlock"> <?php include(DIR_WS_MODULES . 'dynamic_mopics.php'); ?> </div> </div> HTML Code: #content2 {
width: 450px ;
margin-left: auto ;
margin-right: auto ;
}
__________________ 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 |
| The Following User Says Thank You to michael_s For This Useful Post: | ||
ridexbuilder (05-08-2009) | ||
|
#13
| ||||
| ||||
| That seems to address the 2nd point but leaves the images within the box to 'fend from themselves' - unless I'm missing something (likely
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#14
| |||
| |||
| To Michael, I've tried this, the problem is the images themselve are stuck with the float: left; no matter how you center the block, images stay on left side thus not really center, having more or less images would screw up the orientation. Im using this mod so I don't have the codes you posted but I did the same where the same codes got moved to the dynamic_mopics.php This is the mod im using mopics i attached a picture of my problem, you can see the box itself is center but the images inside are not this is my codes in dynamic_mopics.php, unless I did something completely wrong that I didn't know. PHP Code: Last edited by ptt81; 05-08-2009 at 01:07 PM. |
|
#15
| ||||
| ||||
| ptt81 (likewise with the mod, plus my additions) but easy to adapt with a little bit of messing around (put the last </div> as the final line). Yes, as stated, Michael has kindly fixed the second part to my query but our original issue remains open. EJ
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). Last edited by ridexbuilder; 05-08-2009 at 12:54 PM. |
|
#16
| |||
| |||
| ridex, what do you mean putting the last </div> as the final line? may be we're not on the same page...lol. see my post above |
|
#17
| ||||
| ||||
| You sneakily added to your post
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#18
| |||
| |||
| well at least we're on the same page on that issue hope Michael or someone have a work around for this |
|
#19
| ||||
| ||||
| He's a nice man, a very nice man and I'm jealous 'cos he still lives in Heat City, AZ - whereas I'm freezing my buns off (nearly) [Hoping flattery will get us everything]
__________________ UK-based hosting plans with installation, configuration, support and maintenance. (& some ad-hoc jobs). |
|
#20
| ||||
| ||||
| That could be a bit tricky, but should not be too hard. I think the issue is cross browser compatibility. You need to find css that will work in all browsers. I coded something in a couple minutes, but it only displayed properly in FF. Wouldn't work in IE or Chrome (both displayed differently from each other and firefox). If you want my FF solution to put you on the right track, the code below generates the display shown in the attached screenshot for FF. This doesn't work in IE or Chrome, so it is not a solution, but a starting point. If I have more time I may get back to do something here. I think it might be better to start over from scratch instead of trying to fix the current html/css. code block in product_info.tpl.php HTML Code: <div id="content2"> <div class="screenshotsHeader"> <div class="screenshotsHeaderText"><?php echo TEXT_OTHER_PRODUCT_IMAGES; ?></div> </div> <div class="screenshotsBlock"> <div id="content3"> <?php include(DIR_WS_MODULES . 'dynamic_mopics.php'); ?> </div> </div> </div> HTML Code: .screenshots {
display: table-cell;
text-align: center;
padding: 5px 0 5px 0;
margin-left: auto ;
margin-right: auto ;
}
#content2 {
width: 450px ;
margin-left: auto ;
margin-right: auto ;
}
#content3 {
display: inline;
margin-left: auto ;
margin-right: auto ;
}
__________________ 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 |
| The Following 2 Users Say Thank You to michael_s For This Useful Post: | ||
ptt81 (05-08-2009), ridexbuilder (05-08-2009) | ||
![]() |
| 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 |