• Resolved pgdev

    (@pgdev)


    Hi, I’m trying to make the background of the last section(the one with form) of page in a gradient background by applying code below but It isn’t working. Until yesterday it was working fine, now it’s not. I even marked as !important but still same.

    code used in appearance->custom css:

    #form-sectionbg .laaldeewar {
    		background-image: linear-gradient(180deg, #b7248f, #D96AA8) !important;
    }

    https://prnt.sc/lD7QHC3sjZCg check here for reference.

    Please help me! Thanks.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I see two issues:

    1) The ID and class are within the same div container, so there shouldn’t be any spacing between them. That is, your selector should be #form-sectionbg.laaldeewar {}

    2) Just above this CSS code you’re trying to fix, you have an extraneous closing bracket } which shouldn’t be there.

    Thread Starter pgdev

    (@pgdev)

    oops that extra bracket was the problem. It’s solved now. Thanks!

    • This reply was modified 1 year, 5 months ago by pgdev.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘background-image property of css not working for a section background’ is closed to new replies.