Last active
July 6, 2017 08:46
-
-
Save New0/e2c032cd72b0f9d95efaae0ebfc9fd26 to your computer and use it in GitHub Desktop.
Use CSS flex to display the description field above the input filed in Caldera Forms (Flex support: https://caniuse.com/#feat=flexbox)
This file contains hidden or 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
/** Add the class desc-above to the field **/ | |
.form-group.cf-desc-above > div { | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-direction: column-reverse; | |
flex-direction: column-reverse; | |
} | |
.caldera-grid .form-group.cf-desc-above .checkbox, | |
.caldera-grid .form-group.cf-desc-above .radio { | |
margin-top: -5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment