Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1351252

    I am using a grid row for an FAQ section of the site and added a background image using the following CSS.

    #grid1 {
    background-image: url(/wp-content/uploads/2022/04/DW_accordian-bkgd.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    }

    With that code I am getting the background image to appear on the sides of the grid row but I need it to appear on the top and bottom as well.
    https://nimb.ws/18bPxY

    Any ideas on how to accomplish the layout shown in the private content?

    #1351329

    Hi Tiffany,

    Thanks for the screenshots. Could you post a link to where we can see the actual elements as well please?

    Best regards,
    Rikard

    #1351413

    Please see link in private content

    #1351430

    Hi,

    Thanks for that. So you want to remove the white background? If so then try this CSS as well:

    #grid1 .flex_cell {
        background-color: transparent;
    }

    Best regards,
    Rikard

    #1352669

    No, per the screenshot the blue background is supposed to show at the top and bottom as well as on the sides of the white area. I wish a grid could go in a color section, I know that would work perfect!

    #1352695

    Hi tiffanytnttobol,

    Please try to add this CSS code:

    .home #grid1 {
        padding: 80px 0;
    }

    The 80px value is top and bottom padding, just adjust it as you see fit (the default value is 0).
    Hope this helps.

    Best regards,
    Nikko

    #1352794

    Genius! Thank you very much!

    #1352797

    Hi,
    Glad Nikko was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Grid background image’ is closed to new replies.