| How to make rounded module like Mamboserver.com (Part 2) |
|
|
| Sunday, 05 June 2005 | ||||
Page 1 of 2 As promised, I come back this week with the second part of "How to make rounded module like Mamboserver.com" for Mambo 4.5.2.x (and over) Part 2: Putting corners into MamboA. Under standing Mambo 4.5.2.1 and future versions (hopefully) mosLoadModules( $position_name [, $style] )Normally, we have 0 (default), -1, 1 and -2 for for the $style of Mambo. In Mambo 4.5.2.1 the value "-3" for the $style was introduced. Therefore, by using a PHP code: mosLoadModules("position",-3)you will have extra "divs" tags which generate the following format in your Mambo templates: <div class="module[suffix]"> <div> <div> <div> <h3>Module Title</h3> Module output </div> </div> </div> </div> You can learn more about the difference of of using 0, 1, -1 and -2 at this article (Mambo layout) Study an example <div class="module-blue"><div><div><div><h3>Special offer!</h3> <table class="contentpaneopen"> <tr> <td valign="top" colspan="2"> Stop paying $19-$30 per Mambo template!... </td> </tr> </table> </div></div></div></div>
2 easy steps to put corners into MamboStep 1.Adding codes into index.php of your template ![]() Step 2. Adding styles into template_css.css div.leftblock div.module { padding:0px 0px 0px 0px; } .leftblock#leftmenu div.module { background: url('../images/box_b_l.png') no-repeat bottom left; } .leftblock#leftmenu div.module div div { background: url('../images/box_t_l.png') no-repeat top left; } .leftblock#leftmenu div.module div { background: url('../images/box_b_r.png') no-repeat bottom right; } .leftblock#leftmenu div.module div div div { background: url('../images/box_t_r.png') no-repeat top right; } .leftblock#leftmenu div.module div div div h3{ display:block; font-size: 10px; } .leftblock#leftmenu div.module div div div div { background:none; } A. Some css explainations |
||||
| Last Updated ( Sunday, 11 March 2007 ) | ||||
| < Prev | Next > |
|---|





