강의

멘토링

커뮤니티

Inflearn Community Q&A

haesim's profile image
haesim

asked

CSS Basics for Beginners

Box model 4, background

size 단축속성 적용하기

Written on

·

217

0

size의 경우에 단축속성을 적용하려면, position 속성 바로 뒤에 / 표기로 표시해야합니다.
 
div {
        box-sizing: border-box;
        width: 500px;
        height: 500px;
        border: 1px solid red;
        /* background-color: rgb(13%, 20%, 40%); */
        /* background-image: url(./parpotalk.png);
        background-repeat: no-repeat;
        background-position: left top; */
        background: url(./parpotalk.png) no-repeat center/cover;
        /* background-size: contain; */
      }
HTML/CSSVisual Studio Code

Answer

This question is waiting for answers
Be the first to answer!
haesim's profile image
haesim

asked

Ask a question