Title: div code not working
Last modified: August 21, 2016

---

# div code not working

 *  [swaha](https://wordpress.org/support/users/swaha/)
 * (@swaha)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/div-code-not-working/)
 * Hi I created a widget block with this code:
 * <div id = “greenbox”>The secret of happiness, you see, is not found in seeking
   more,
    but in developing the capacity to enjoy less. -Socrates</div>
 * #greenbox {
    border: 3px solid #71C146; margin-top: 20px; margin-bottom: 20px;
   padding: 15px; border-radius: 10px; background:lightGrey; }
 * But none of the styling shows up. Just the text.
 * Should I be able to do this?
 * I put the div id code in the “text” portion on wordpress.
 * [http://gaylejann.com/conscious-living/](http://gaylejann.com/conscious-living/)
 * The Socrates quote should have a border around the text.
 * [https://wordpress.org/plugins/wysiwyg-widgets/](https://wordpress.org/plugins/wysiwyg-widgets/)

The topic ‘div code not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysiwyg-widgets_94bdc6.svg)
 * [Widget Content Blocks](https://wordpress.org/plugins/wysiwyg-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wysiwyg-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wysiwyg-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysiwyg-widgets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [swaha](https://wordpress.org/support/users/swaha/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/div-code-not-working/)
 * Status: not resolved