I'm trying to keep these two div
s side by side. I've set 50%
width for them but still they are under eachother. What's wrong?
div{
border: 1px solid;
display: inline-block;
width: 50%;
}
<form>
<div>
two
</div>
<div>
one
</div>
</form>
I don't want to use flex
display. Noted that, it would be ok if I set 49%
for the width
property, but doesn't look standard to me. Also as you know, that 1px
border has nothing to do with the issue.
How can I keep them next to each other? Thanks in advance