Title: CSS for Width and Centering
Last modified: August 30, 2016

---

# CSS for Width and Centering

 *  Resolved [amckenziecaa](https://wordpress.org/support/users/amckenziecaa/)
 * (@amckenziecaa)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/css-for-width-and-centering/)
 * Trying to center a 3 column div element with CSS class as you suggested in an
   earlier thread. So I did this
 * #ebs {
    width: 130.141em; margin-left: auto; margin-right: auto; }
 * That centered it, but broke responsiveness.
 * So then I did this
 * #ebs {
    max-width: 130.141em; margin-left: auto; margin-right: auto; }
 * Then it was back to being responsive, but was no longer centered on desktop.
 * Also tried percentage widths and parent/child div’s without results.
 * How can I center the columns using div-block like you suggested but ALSO keep
   it responsive?
 * [https://wordpress.org/plugins/easy-bootstrap-shortcodes/](https://wordpress.org/plugins/easy-bootstrap-shortcodes/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [amckenziecaa](https://wordpress.org/support/users/amckenziecaa/)
 * (@amckenziecaa)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/css-for-width-and-centering/#post-6453151)
 * Nevermind, hardcoded it instead of using the plugin.

Viewing 1 replies (of 1 total)

The topic ‘CSS for Width and Centering’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-bootstrap-shortcodes_c3b0c1.
   svg)
 * [Easy Bootstrap Shortcode](https://wordpress.org/plugins/easy-bootstrap-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-bootstrap-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-bootstrap-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-bootstrap-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-bootstrap-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-bootstrap-shortcodes/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [amckenziecaa](https://wordpress.org/support/users/amckenziecaa/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/css-for-width-and-centering/#post-6453151)
 * Status: resolved