본문 바로가기
CSS

background bg css

by 영감은어디에 2024. 4. 28.
background-color:#eee;
background-image: url(../img/sample.jpg);
background-position:center;
background-size: 50%;
background-repeat:no-repeat;
background: #004fff url(../img/sample.jpg) no-repeat center/cover;
background: url(../img/sample.jpg) no-repeat center/cover;
background: url(../img/sample.jpg) repeat-x center/40%;;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-size: contain;