VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jkirsch on June 07, 2012, 19:09:49 PM

Title: Fix VM2 Width to fit Joomla Template
Post by: jkirsch on June 07, 2012, 19:09:49 PM
Hello,

I need to edit VM2 width to fit my joomla template... when I set the number of products per line (example: 2 or 3), the last product displays on a new line...
URL: http://danpex.com.mx/index.php

Thank you

Jorge Kirsch
Title: Re: Fix VM2 Width to fit Joomla Template
Post by: lumieres on June 08, 2012, 09:16:53 AM
If you use Mozilla Firefox... et an app called FireBug.  It allows you to examine your CSS and make adjustments to see their effects.

If I understand you correctly .. you can achieve the 3 per row (on the link you provided)  by reducing the right margin (Line 38  in the file ... /rt_mercado/css/demo-styles.css)

Or in the joomla.css file ..  reduce the column width from 33.33% down slightly.

or something similar.

Title: Re: Fix VM2 Width to fit Joomla Template
Post by: jenkinhill on June 08, 2012, 15:43:08 PM
The problem is with your RT template. See http://forum.virtuemart.net/index.php?topic=102765
Title: Re: Fix VM2 Width to fit Joomla Template
Post by: jkirsch on June 09, 2012, 00:34:27 AM
This reply solved the problem (inside those links)

If you have a rocket theme template, just do this.

add this to your template.css and clear your cache:
body div.floatleft {
float: left;
margin-left: 0px;
margin-right: 0px;}

Thanks for the help