[Resolved] Creating Separate Sections Using CSS

Home Forums Support [Resolved] Creating Separate Sections Using CSS

Home Forums Support Creating Separate Sections Using CSS

  • This topic has 5 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #303102
    Clyde

    I’m working on a page using Sections. It currently has 4 sections:
    https://fluxresearch.com/clyde-smith-freelance-writing-services/

    I would like each section to be separated by a margin with the dark grey background color from the page visible. This would look like the blog excerpts on my home page:
    https://fluxresearch.com/

    I tried doing what was recommended in this earlier topic:
    https://generatepress.com/forums/topic/need-help-with-page-sections/

    I added this Additional CSS via the Customizer:
    .section-margin {
    margin-bottom: 20px;
    }

    I also added the related class in Custom Classes for each of the 4 Sections:
    section-margin

    However that doesn’t seem to be doing anything.

    How can I make this happen?

    Thanks!

    #303120
    Leo
    Staff
    Customer Support

    Hi Clyde,

    Can you try the exact code in this post?
    https://generatepress.com/forums/topic/need-help-with-page-sections/#post-276073

    Shouldn’t need to add anything to the Custom Classes field as well.

    Let me know.

    #303126
    Clyde

    It does work except for one thing.

    I’d like the top margin of the first section to be parallel to the top margin of the sidebar like it is on the home page.

    Any way to do that?

    Thanks!

    #303135
    Leo
    Staff
    Customer Support

    Add this addtional CSS:

    #generate-section-1 {
        margin-top: 0;
    }

    Let me know.

    #303174
    Clyde

    That did the trick.

    Thanks!

    #303197
    Leo
    Staff
    Customer Support

    No problem 🙂

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