Is there a way to display an input and a button inline, with the input taking up 70% of the row and the button taking up 30%?
I tried setting the CSS for the input to 70% and the button to 30%, but they keep breaking onto separate lines.
How can I solve this issue?
* {
margin: 0px;
}
input {
width: 70%;
}
button {
width: 30%;
}
<div>
<input type="text" />
<button>Button</button>
</div>