Skip to main content

Search

Styling Question - Is there a way to move the Field Description above the input field?

Comments

3 comments

  • Joerg_K.

    No one ? skybow Support or skybow Consulting ?

    0
  • Matthias_Walter

    Hi Joerg_K.,

    you can achieve that by using the CSS option display:flex as shown below.

    This is tested on a NewForm for a Single line of text field. It might be a bit different for other field types as the html structure is different.
    This is the source of my solution: https://stackoverflow.com/questions/220273/how-can-i-reorder-my-divs-using-only-css

    Just add a new style on the field like this:

    .sb-field{
      display: flex;
      flex-direction: column;
    }
    .sb-field > div:not([class]){
      order: 3;
    }

    .sb-field-label {
      order: 1;
    }

    .sb-field-desc {
      order: 2;
    }

    Kind regards
    Matthias

    0
  • Joerg_K.

    Thank you Matthias_Walter works fine when looking at the form, at the editor it's wired, but the result counts.

    0

Please sign in to leave a comment.