Title: div background color
Last modified: November 2, 2016

---

# div background color

 *  Resolved [rphrus](https://wordpress.org/support/users/rphrus/)
 * (@rphrus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/div-background-color/)
 * Hi,
 * I created a couple of fields in a div. How do you code the div to have a background
   color ie blue so that the fields contained within the div will have a blue background?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/div-background-color/#post-8388949)
 * Hi,
 * You simply should assign a custom class name to the DIV field. For example: my-
   container
 * Note: The class names are assigned to the fields through the attribute: “Add 
   Css Layout Keywords”
 * And then, insert a “HTML Content” field, with the style definition as its content,
   as follows:
 * `<style>#fbuilder .my-container{background:#00BFFF !important;}</style>`
 * Best regards.

Viewing 1 replies (of 1 total)

 The topic ‘div background color’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form - AI Form Builder for WordPress - Contact, Payment, Quote, Quiz & More](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/div-background-color/#post-8388949)
 * Status: resolved