• Resolved marcodurigon14

    (@marcodurigon14)


    My site has a home with three columns, instead all internal pages have two columns. On the inside pages the text reaches almost to the edge and I would like to create a margin to the right. If I change the padding, the changes also apply in the other sidebars, including the menu one. Anyone can tell me the correct css code to apply the margin only to the right column of the internal pages (not to the other columns, not in the home page)?

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s unclear if you want to change just the text margin or also graphic element margins. Assuming just the text, and all text is created in Elementor, try adding this to the customizer’s Additional CSS section:

    body:not(.home) .elementor-text-editor {
        margin-right: 1em;
    }

    Use any width value you like in place of 1em

    Thread Starter marcodurigon14

    (@marcodurigon14)

    Thank. In effect I would like to change text and images margins. what should I add to the code (which works) you have already sent me?

    Moderator bcworkz

    (@bcworkz)

    This will increase the right padding (currently 1em) of everything in the main content area (except for home page):

    body:not(.home) #main {
        padding-right: 2em;
    }

    You might consider learning how to use your browser’s element inspector developer tool. It’s an important aid in working out the desired styling of anything on the page. The linked page is a lot to digest and you may not need to know much of it. I suggest you first skim over it simply to get a feel for the sort of information available. Read in more detail anything that seems particularly useful. Then just start using the tool and learning how it works as you go along. You’ll learn a lot just by using the tool. If you get stuck on something, then you can refer back to the documentation.

    If nothing else, it’ll help you arrive at just the right distance values, like is 2em good, or is 3em better? Any CSS rule change is immediately visible on the page. No change is persistent until it’s copied to Additional CSS. Reloading the page reverts everything back to its persistent state.

    The linked page is specifically for Firefox, but the tool in Chrome is very similar. There ought to be a similar document specifically for Chrome. The linked page is just the first good documentation I saw in search results.

    Thread Starter marcodurigon14

    (@marcodurigon14)

    Perfect! Thank you very much.
    MD

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Margin right internal pages’ is closed to new replies.