How To Reduce Left Margin - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Reduce Left Margin

Josep

Josep

Template 3 years ago

Hi, I have a doubt using Educon template

How can I reduce the left margin on the normal pages which aren't made with SP Page Builder. For example, in my case, in pages in which I use Joomshopping, there is a big left margin before the left menu and I would like to reduce it, as I can do it with SP Page Builder with which I can take advantage of all the space on the website.

I attach you a screenshot: https://ibb.co/1mYgbcY

Thank you very much

Josep

0
7 Answers
Pavel
Pavel
Accepted Answer
3 years ago #57095

Hi Josep.

Looks like you do not understand how the page layout is arranged. There is no left margin that you can configure. The left and right margins are always the same, since the entire content of the page is located in the .container that located in the center and having a maximum width of 1140px (in your case). Also .container has left and right margins with "auto" value, that makes it sit in the center of the page.

If you set up the left margin via CSS, I do not think that you will like the result.

Example (entire site will shift to the left):

If you apply the settings suggested by Ofi (sorry Ofi), it will also be a dubious result.

So, in order to achieve what you want, you must take out the menu module beyond the main container. To do this, you will need significant CSS skills. You can understand how it works if you explore the Fixter template through the browser code inspector

I asked a similar question for the 'left' Helix module postion found here

Hi Joe.

I do not think that you got a qualitative solution in that topic. This is a crutch that creates more problems than solves. Check this solution when changing the browser width and I think you will understand that it is very bad. I think your site twisted for one side.

The width of the columns is configured in the Layout Builder and has standard values from Bootstrap in percents. If you need an individual setting of column width in pixels via CSS you must take control of CSS all the layout and configure all other columns as well through CSS. Since, all this depends on the width of .container too.

If your site uses HU and you have one left column, сode in your case should be approximately such

#sp-left {
    width: 300px;
}
#sp-component {
    width: auto;
    flex: 1;
}
0
J
joe
Accepted Answer
3 years ago #57008

I asked a similar question for the 'left' Helix module postion found here:

Not sure if it will help?

0
Josep
Josep
Accepted Answer
3 years ago #57009

Thank you very much joe! I have just tried this code and this allows me to modify the right padding of the left module. My problem is that there's a big margin on the left side of the left module.

Thanks!

0
J
joe
Accepted Answer
3 years ago #57010

So basically, the same code but need it to reduce both right and left padding on the left module.

Is that right?

0
Josep
Josep
Accepted Answer
3 years ago #57011

Right, I think so.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #57071

Hello Josep

Please go to the Template Options -> Layout and set Full Width to main body section.

https://prnt.sc/26ve847

Best regards

0
Josep
Josep
Accepted Answer
3 years ago #58208

Thank you very much @Ofi Khan and @Pavel, your options worked perfectly for me!

Sorry for the delay with my answer but I've just seen your answer.

Best regards,

Josep

0