admin管理员组

文章数量:1335553

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

本文标签: cssTrying to modify the background of a form on a specific page