Box Layout - remove/overwrite inner spacing (padding: 25px)

Hello,

I use the "Box layout" for my website (Theme Options > General > Layout > Box).

I would like to remove/overwrite the entire inner spacing (padding: 25px) of the box layout. Which CSS classes are necessary for this?

I found the following CSS classes:

.layout-boxed { padding:25px 0 }

@media only screen and (min-width: 1240px) { .layout-boxed { padding:25px }

If I add the above CSS classes to the "style.css" of the "theme" and then change them, unfortunately nothing changes. See also screenshot.

.layout-boxed { padding: 0 !important; }

@media only screen and (min-width: 1240px) { .layout-boxed { padding:0 !important; }

I therefore ask for your help.

Best regards


Comments

  • Hi,

    Did you try setting side padding for boxed layout to zero in Betheme -> Theme options -> Global -> Advanced?

    Best regards

  • Hi,

    thanks for your feedback.

    This option (Betheme > Theme options > Global > Advanced > Side padding for Boxed Layout) controls the wrong inner spacing. The default is also 20px (see screenshot 1 and 2).

    I meant the (inside distance of 25px) outside the boxed layout to the edge (see screenshot 3)

    The following CSS classes are responsible for this:

    .layout-boxed { padding:25px 0 }

    @media only screen and (min-width: 1240px) { .layout-boxed { padding:25px }

    Changing the following CSS classes solved the problem. However, I do not know why the change did not work yesterday. Today it worked with the following changes.

    .layout-boxed { padding: 0 !important; }

    @media only screen and (min-width: 1240px) { .layout-boxed { padding:0 !important; }

    Thank you for your quick reply.

    I was able to solve the problem.

    Kind regards

  • I am happy to see that you handled that. Your changes could not have been visible earlier because of your website's cache.

    If I can help you with anything else, please let me know.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.