반응형

class ="container" 입니다 여백을 가져가는 특징이 있습니다.

 

class ="container-fluid" 입니다. 여백을 덜 가져갑니다.

 

<!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">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
    
    <title>Document</title>
    
</head>
<body>
    <div class= "container-fluid">
        <div>
            안녕하세요!
        </div>


    </div>
    

</body>
</html>

보통 밖에다 적어서 큰 DIV 틀을 만들어줍니다.

 

 

반응형