Format Columns Layout Spacing

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 11 months ago #40156 by Dave
Format Columns Layout Spacing was created by Dave
In Membership Pro I have chosen to use the columns layout. However, it is set to have just 1px of space between each plan box (or column). Using Firebug I see that this is defined by:

element.style {
border: 1px solid #E5E5E5;
float: left;
margin: 1px;
width: 27%;

Which file do I edit this in? Firebug does not point to any particular file.
Thanks so much!

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #40174 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Format Columns Layout Spacing
Hi Dave

Send me the link to the page, please. I will ask my dev to check it and tell you what field you need to modify to reduce the space between plans.

Tuan

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #40175 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Format Columns Layout Spacing
If you are using latest version, you can follow the instructions below to reduce the space :

1. Open the file components/com_osmembership/views/common/columns_plans.php

2. Find the code below :
Code:
$width = (int)(100/$numberColumns) - 6 ;
3. Change it to something like :
Code:
$width = (int)(100/$numberColumns) - 2 ;

After that, check it again and the space should be reduced.

If you still use old version, the same code need to be modified but in a different file components/com_osmembership/views/plans/columns.php

Hope that helps.

Tuan

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 11 months ago #40315 by Dave
Replied by Dave on topic Re: Format Columns Layout Spacing
Thanks Tuan.

This solution did not work for me but I have decided to leave the spacing as is. I just wanted to let anyone else reading this know that I didn't have success with this but maybe others will.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #40378 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Format Columns Layout Spacing
Why don't you simply submit a support ticket sending us information of your site ? I will be happy to help you to edit code to solve the problem !

Tuan

Please Log in or Create an account to join the conversation.