text-align

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

CSS

목록 보기
10/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>
            #p1 {
                text-align: center;
            }
            #p2 {
                text-align: justify;
            }
            div {
                border: 1px solid black;
                width: 200px;
            }
        </style>
    </head>
    <body>
        <div>
            <p id="p1">
                Lorem ipsum dolor sit amet consectetur adipisicing elit.
                Voluptatem, doloribus delectus quia officiis odio commodi ipsa
                qui assumenda soluta dolorem odit? Nesciunt error dolorum quasi
                tempore doloremque quisquam neque reiciendis.
            </p>

            <p id="p2">
                Lorem ipsum dolor sit amet consectetur adipisicing elit.
                Voluptatem, doloribus delectus quia officiis odio commodi ipsa
                qui assumenda soluta dolorem odit? Nesciunt error dolorum quasi
                tempore doloremque quisquam neque reiciendis.
            </p>
        </div>
    </body>
</html>

profile
Backend Engineer

0개의 댓글