Last active
July 3, 2017 18:56
-
-
Save New0/f5c4390234fc824188ba59d47365705f to your computer and use it in GitHub Desktop.
Caldera Forms label on left of input
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
/************* Modern version for browsers with flex support https://caniuse.com/#feat=flexbox ********************/ | |
.caldera-grid .form-group { | |
display: flex; | |
} | |
.caldera-grid .form-group label { | |
width: 25%; /*Set to the width needed by the text of your label */ | |
} | |
.caldera-grid .form-group > div{ | |
width: 75%; /*Set to the width needed by the text of your input */ | |
} | |
/*************** Version for older browsers *********** | |
.caldera-grid .form-group { | |
display: block; | |
} | |
.caldera-grid .form-group label { | |
width: 25%; | |
display: block; | |
float: left; | |
} | |
.caldera-grid .form-group > div{ | |
width: 75%; | |
display: block; | |
float: left; | |
} | |
*****************/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment