본문 바로가기
> HTML-CSS

[HTML/CSS] 기본 input CSS 만들기

by bky373 2020. 12. 31.

>> 기본적인 input CSS 만들기

.input--text {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    font-size: 16px;
}

.input--text:focus {
    border-color: #51a7e8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075),
                0 0 5px rgba(81, 167, 232, 0.5);
}



>>> 결과 

- focus 없을 때

- focus 있을 때




출처
- fastcampus,
- HeropCode github.com/HeropCode/GitHub-Responsive

댓글