How to fix this button? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
15th Jun 2019, 6:07 PM
Manish
Manish - avatar
5 Answers
+ 1
what do you mean by fix?? btw a button has a tag <button>signIn</button>
15th Jun 2019, 6:13 PM
Anton Böhler
Anton Böhler - avatar
+ 1
When I use float: right for button and input button both...it comes out of that div..so i want to know its cause?
15th Jun 2019, 6:15 PM
Manish
Manish - avatar
+ 1
like this? in html: <button id="btn">SignIn</button> in css: #btn{ margin-left: 50%; }
15th Jun 2019, 6:21 PM
Anton Böhler
Anton Böhler - avatar
+ 1
Why that button comes outside the border..?if i remove float property, then it goes inside border-box..but in left side..
15th Jun 2019, 6:27 PM
Manish
Manish - avatar
+ 1
Remove the float, and add an <br> at the end of line 19. Also, you don't need a <div class="form">. You should use <form> instead.
15th Jun 2019, 11:34 PM
Chris Coder
Chris Coder - avatar