I want to prevent line breaks between two forms I have.
So basically:
<form action="...">
<input type="submit" />
</form>
LINE BREAK HERE
<form action="...">
<input type="submit" />
</form>
I want to remove the line break. I want the input buttons to be on the same line, like a menu.
form {
display: inline;
}
I think this is the correct solution:
form { display: inline-block; }
The inline-block value is used for the purpose of laying out native block-level elements inline. Those elements will still remain blocks.
Changing the model for an element from block to inline is a radical move because it may mess things up depending on what the contents of the element are.
For this particular issue, using inline-block is the way to go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With