[Resolved] Is there a way to set inner box background color for a section?

Home Forums Support Is there a way to set inner box background color for a section?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #307233
    sdanbu

    I’m using sections and I can make the background image for the section but is there a way to
    set the color for the inner box background color?

    Like I want to go from Settings panel into Content panel and type some html
    <Set inner box background color >
    Text
    <close html so background color stays in the inner box of section only>

    Thanks

    GeneratePress 1.3.46
    #307321
    Leo
    Staff
    Customer Support

    Hi Scott,

    You can try CSS like this and replace # with the actual section number:

    #generate-section-# .generate-sections-inside-container {
        background-color: #ffffff;
    }

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

    If you need more info can you provide a link to your site?

    Thanks!

    #307344
    sdanbu

    Just to clarify, how do you know what the section number is? And would I replace the whole text or just the # sign in the bold below?

    #generate-section-# .generate-sections-inside-container {
    background-color: #ffffff;
    }

    Maybe can I send the site private link?

    #307350
    Leo
    Staff
    Customer Support

    It should just be ascending order starting from 1, so for the very top section:

    #generate-section-1 .generate-sections-inside-container {
        background-color: #ffffff;
    }

    Let me know if this helps.

    #307365
    sdanbu

    That worked thanks.

    #307506
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.