I've been searching for a solution to this issue without any luck.
In my setup, there are three input fields and a submit button displayed side by side on large screens, enclosed in <div class="col-sm">
to stack vertically on mobile devices. However, I need a checkbox to appear before the submit button on small screens, while it's fine for it to be displayed below the input fields on larger screens.
<form method="post">
<div class="row">
<div class="col-sm">
<input id="email" name="email" type="text" class="required email form-control form-rounded" placeholder="Email">
</div>
<div class="col-sm">
<input type="text" class="form-control form-rounded" placeholder="Number">
</div>
<div class="col">
<input name="comp" id="comp" type="text" class="form-control form-rounded" placeholder="Company">
</div>
<div class="col-sm">
<input type="submit" name="submit" id="subscribesubmit" class="button btn-block" value="Sign up">
</div>
</div>
<div id="contactconsent" class="d-flex justify-content-center margin-top-small">
<input type="checkbox" name="consent" id="contactconsentcheck">
<label class="checkbox-inline" for="contactconsentcheck">
Lorem ipsum dolor sit amet
</label>
</div>
</form>
I initially thought about adjusting margins with media queries, but it doesn't seem like the best approach. Any ideas?
Thank you