background

유석현(SeokHyun Yu)·2022년 11월 15일
0

CSS

목록 보기
28/32
post-thumbnail
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: 5px solid gray;
        /* background-color: tomato; */
        background-image: url("css.png");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: contain;
        background-position: center center;
      }
    </style>
  </head>
  <body>
    <div>
      Lorem ipsum dolor sit amet consectetur adipisicing elit. Recusandae
      obcaecati nulla corporis voluptatem ut rerum nam ipsa, dicta odit totam
      mollitia quae perspiciatis! Quidem soluta eum quos, vitae dignissimos
      dolor. Quod itaque dolor, ad aut eligendi tempore veritatis et deserunt
      
      						 		...
      
      minus praesentium quidem eligendi, magni tenetur alias similique ab
      soluta! Qui temporibus suscipit incidunt maiores a reprehenderit
      consectetur, voluptate provident ipsam fugit porro commodi! Impedit nihil
      porro alias eos reprehenderit optio rerum autem fugiat voluptatibus?
      Adipisci sed facere illo repellendus.
    </div>
  </body>
</html>

profile
Backend Engineer

0개의 댓글