Created
July 24, 2012 15:19
-
-
Save OpenGrid/3170621 to your computer and use it in GitHub Desktop.
Twitter Bootstrap form-horizontal css for form for two column layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 980px) { | |
.form-horizontal .control-group > label { | |
float: none; | |
width: auto; | |
padding-top: 0; | |
text-align: left; | |
} | |
.form-horizontal .controls { | |
margin-left: 0; | |
} | |
.form-horizontal .control-list { | |
padding-top: 0; | |
} | |
.form-horizontal .form-actions { | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
} |
Great!
I want to complete your code width "!important" at margin-left to have effect:
@media (max-width: 980px) {
.form-horizontal .controls {
margin-left: 0!important;
}
}
This works great, thank you very much for the submission!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is fantastic, works beautifully. Thanks!