본문 바로가기
Web/CSS

input display를 inline으로 하는법

by SOOMING LEE 2021. 3. 12.

input 태그는 기본적으로 display: inline-block 이다.

아래로 내려오는 이유는 충분한 width를 안줘서 일수도 있다.

 

width를 충분히 주면 옆으로 나란히 됨

 

 

stackoverflow.com/questions/26288241/how-can-i-make-inputs-display-inline

 

How can I make inputs display inline?

I can't seem to figure out how to display the two inputs in the following code as {display: inline} format so that they appear next to each other rather than on separate lines. I've looked at other...

stackoverflow.com

 

댓글