css - Trying to modify the background of a form on a specific page

Here's my CSS: .page-id-9399 body #gform_wrapper_3 {background-color: #363c42;}This is related to a Gravity Forms

Here's my CSS:

.page-id-9399 body #gform_wrapper_3 {
    background-color: #363c42;
}

This is related to a Gravity Forms (contact form submission).

I'd like the background of the FORM to be the color as above.

I thought the above code would work because the Page ID os 9399

I think it is the reference "body" that throws this CSS snippet.

Any ideas on how to fix it?

Thanks

Here's my CSS:

.page-id-9399 body #gform_wrapper_3 {
    background-color: #363c42;
}

This is related to a Gravity Forms (contact form submission).

I'd like the background of the FORM to be the color as above.

I thought the above code would work because the Page ID os 9399

I think it is the reference "body" that throws this CSS snippet.

Any ideas on how to fix it?

Thanks

Share Improve this question asked May 28, 2020 at 1:03 HenryHenry 9831 gold badge8 silver badges31 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Another way of phrasing it is to just MOVE the body. The page-id class is applied to the body, so:

body.page-id-9399 #gform_wrapper_3 {
    background-color: #363c42;
}

Would have worked

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742395482a4435857.html

相关推荐

  • css - Trying to modify the background of a form on a specific page

    Here's my CSS: .page-id-9399 body #gform_wrapper_3 {background-color: #363c42;}This is related to a Gravity Forms

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信