Skip to content

Instantly share code, notes, and snippets.

@New0
Last active July 6, 2017 08:46
Show Gist options
  • Save New0/e2c032cd72b0f9d95efaae0ebfc9fd26 to your computer and use it in GitHub Desktop.
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)
/** 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