[Resolved] Space between sections

Home Forums Support [Resolved] Space between sections

Home Forums Support Space between sections

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #298165
    Alessia

    Hello dear GP-Team,

    when I want to have some space between my text sections, what can I do?

    As example: I want to have between my text sections (with content background color) some space with the color of my background. Can I add an empty section for that or some custom CSS?

    Thank you in advance!

    #298166
    Leo
    Staff
    Customer Support

    Hi Alessia,

    By sections do you mean Sections add on?

    Can you provide a link to your site?

    Thanks!

    #298168
    Alessia

    Hi Leo,

    yes, with sections add on.

    At the bottom of my homepage singlevip.de you can see what do I mean.
    So I want to devide my text sections in some content parts and to have some space between them.

    #298169
    Alessia

    I do this with a new section with an empty space, but I don’t know if it the right way.

    #298172
    Leo
    Staff
    Customer Support

    ahh I see what you are saying πŸ™‚

    Try this CSS:

    .generate-sections-container {
        margin-top: 20px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this is what you wanted.

    #298174
    Alessia

    Perfekt, thank you! πŸ™‚

    And, what should I do, to have the title of each content section as a line with other color? Then I shoud to add this title as extra section with my wished background?

    #298176
    Leo
    Staff
    Customer Support

    Depends what you are using for the title (h1/h2 etc.)

    Try this CSS and you should see it change for your h2 titles in the existing content:

    .generate-sections-container h2 {
        background-color: #000000;
    }
    #298178
    Alessia

    Thank you very much for your help, Leo! πŸ™‚

    One more question:
    I tried it with sections, but I can’t see any sidebar. But the option is activated. It is maybe of the section addon? https://www.singlevip.de/parship-erfahrungen-und-test2/

    #298180
    Leo
    Staff
    Customer Support

    You’re welcome πŸ™‚

    See Tom’s explanation and alternative solution here: https://generatepress.com/forums/topic/sidebar-2/#post-227266

    #298182
    Alessia

    Perfect, its working! Thank you!! πŸ™‚

    #298183
    Leo
    Staff
    Customer Support

    Glad I could help πŸ™‚

    #313348
    Alessia

    Hi Leo,

    I have one question regarding space between sections (see above).

    I want to add some space at the bottom of each section, but when I use this code, I didn’t see any space at the bottom.

    .generate-sections-container {
    margin-bottom: 10px;
    }

    And when I use margin-top: 10px; I have the content part and a widget part not in the same line (like now)
    See this link: http://www.betrugonline.net/stockpair-erfahrungen-und-test/

    How can I do it right?
    Thank you!

    #313459
    Leo
    Staff
    Customer Support

    Hi Alessia,

    Give this CSS a shot:

    .separate-containers .site-main>.generate-sections-container {
        margin-bottom: 10px;
    }

    Let me know.

    #313462
    Alessia

    It’s working! Thank you soo much!!

    #313463
    Leo
    Staff
    Customer Support

    Glad I could help!

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.