How do I get a button and a form element in the same line without a linebreak happening?
thank you very much!
<button>ask question</button>
<form action="/search" method="get">
<input type="text" name="q" value="{SearchQuery}"/>
<input type="submit" value="Search"/>
</form>
Use this CSS style:
style="display: inline;"on your form.Here’s a demo on JSBin.