How to make my two input boxes in two sides of the "hr" line? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to make my two input boxes in two sides of the "hr" line?

https://code.sololearn.com/W99NQKeX8KVe/?ref=app

28th Jul 2017, 12:42 PM
School Dog
3 Answers
+ 10
<input style=float:left;width:50px> <hr style=display:inline-block;width:150px> <input style=float:right;width:50px>
28th Jul 2017, 12:54 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
It's not symettrical but.. hr{ width:1px; height:30px; display: inline; margin: 5%; } input { width: 30%; margin: 0; }
28th Jul 2017, 12:54 PM
The Coding Sloth
The Coding Sloth - avatar
+ 2
tks!
29th Jul 2017, 2:40 AM
School Dog