CSS 클래스를 혼용하여 박스 만드는 방법 > html

본문 바로가기
사이트 내 전체검색

html

CSS 클래스를 혼용하여 박스 만드는 방법

페이지 정보

작성자 서방님 댓글 0건 조회 126회 작성일 06-09-14 11:38

본문

<style>
.bordered {
        border: dotted 2px black;
        width: 180px;
        margin: 6px 3px 6px 3px;
        padding: 7px;
}
 
.type1 { background-color: #ffccff; }
.type2 { background-color: #ccffcc; }
.type3 { background-color: #ffffcc; }
.type4 { background-color: #ccccff; }
 
</style>

<div class="bordered type1">
        bordered와 type1 속성을 지정한 박스입니다.
</div>
<div class="bordered type2">
        bordered와 type2 속성을 지정한 박스입니다.
</div>
<div class="bordered type3">
        bordered와 type3 속성을 지정한 박스입니다.
</div>
<div class="bordered type4">
        bordered와 type4 속성을 지정한 박스입니다.
</div>

http://korea.internet.com/channel/content.asp?cid=187&nid=26425

첨부파일

댓글목록

등록된 댓글이 없습니다.

Total 323건 19 페이지
게시물 검색

회원로그인

접속자집계

오늘
124
어제
225
최대
1,347
전체
154,883
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.