Sungtt

input border가 두꺼워져도 사이즈를 유지하는 법 본문

CSS

input border가 두꺼워져도 사이즈를 유지하는 법

sungtt 2022. 12. 25. 00:25

input border가 두꺼워져도 사이즈를 유지하는 법

input focus가 됐을 때 아무 조치없이 border width를 늘리면 보기좋지않다.

이를 해결하기위해서는 늘린 border만큼 padding을 조절해주는 것이다.

 

See the Pen Untitled by qirtudgus (@qirtudgus) on CodePen.

Comments