最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论