Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form-inline error #2621

Closed
quasiperfect opened this issue Mar 15, 2012 · 2 comments · May be fixed by Tripooly/bootstrap#29, TheLOGOGuy/bootstrap#30 or phungmobile2/bootstrap#24
Closed

form-inline error #2621

quasiperfect opened this issue Mar 15, 2012 · 2 comments · May be fixed by Tripooly/bootstrap#29, TheLOGOGuy/bootstrap#30 or phungmobile2/bootstrap#24

Comments

@quasiperfect
Copy link

can someone please give me a example hot to add error class to a inline form with input-prepend elements ?
because if i add control-group the form is not inline anymore

@ghost
Copy link

ghost commented Mar 20, 2012

I have the same problem with Twitter Bootstrap, Rails and simple_form. A solution could be:

.form-inline .controls, 
.form-inline .control-group { display:inline; }

@mdo
Copy link
Member

mdo commented Mar 23, 2012

@martinpetrov seems to have nailed it—reset the display and nuke any other CSS properties that come with the default .control-group (should just be margin) and you should be okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants