Title: Inline form-group max-width
Last modified: October 29, 2016

---

# Inline form-group max-width

 *  [brandonlang](https://wordpress.org/support/users/brandonlang/)
 * (@brandonlang)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/inline-form-group-max-width/)
 * I’m trying to build a form using the **layout:inline** setting so that I can 
   get Bootstrap’s inline styling (no labels, placeholder text). In Other Notes,
   it states, “note that in most cases the inline form will need additional styling
   to look good”. That’s fine with me, I can easily figure out all the custom styling.
   However, when I apply the **layout:inline** setting, the following style is added
   to the page header:
 *     ```
       div.wpcf7 .form-inline .form-group {
           max-width: 250px;
       }
       ```
   
 * Obviously, this is easy to override with my own styles, but I’m wondering where
   this 250px comes from and if it should be overridden or changed somewhere else
   other than writing my own CSS? I certainly could dig through the PHP to try to
   find where this 250px is coming from, but I’m hoping I can get a quick answer
   on here.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Felix Arntz](https://wordpress.org/support/users/flixos90/)
 * (@flixos90)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/inline-form-group-max-width/#post-8419603)
 * Hi Brandon,
 * I added these styles to the plugin so that there is at least a default limitation
   for the button width. You’re right that it still needs to be overridden in most
   cases. The limitation only exists so that the form controls hopefully appear 
   inline by default. If they still spanned across a 100% width, it would be more
   confusing for users that do not know about the required manual adjustment.
 * Hope that helped!

Viewing 1 replies (of 1 total)

The topic ‘Inline form-group max-width’ is closed to new replies.

 * ![](https://ps.w.org/bootstrap-for-contact-form-7/assets/icon-256x256.png?rev
   =1021147)
 * [Bootstrap for Contact Form 7](https://wordpress.org/plugins/bootstrap-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Felix Arntz](https://wordpress.org/support/users/flixos90/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/inline-form-group-max-width/#post-8419603)
 * Status: not resolved