테스트 사이트 - 개발 중인 베타 버전입니다

W3.CSS 패널

· 8년 전 · 1911

W3.CSS 패널

 

패널 클래스
W3 패널 클래스는 HTML 요소에 16px의 위쪽과 아래쪽 여백과 왼쪽 16px과 오른쪽 패딩을 추가합니다.


<div class="w3-panel w3-red">
  <p>I am a panel.</p>
</div> 

 

[전체소스]

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>

<div class="w3-container">
  <h2>Displaying Panels</h2>
  <p>Panels are the same as containers except for an added top and bottom margin.</p>

  <div class="w3-panel w3-red">
    <p>I am a panel.</p>
  </div>
  <div class="w3-panel w3-green">
    <p>I am a panel.</p>
  </div>

  <div class="w3-container w3-red">
    <p>I am a container.</p>
  </div>
  <div class="w3-container w3-green">
    <p>I am a container.</p>
  </div>
</div>

</body>
</html>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
3643
3631
3627
3621
3619
3617
3610
3609
3608
3607
3606
3603
3602
3601
3600
3595
3591
3587
3578
3567
3561
3560
3559
3557
3555
3554
3552
3551
3550
3537