웹표준,웹접근성(html, html5, css, css3, javascript, jQuery, jQueryMobile, snecha, senchaTouch, php, mobileWebApp)

플로팅 디자인의 특징 본문

css

플로팅 디자인의 특징

jokack01 2011. 11. 11. 10:06

<!DOCTYPE html>
<html lang="ko">
<head>
 <meta charset="utf-8">
 <title>플로팅 디자인의 특징</title>
 <link rel="stylesheet" href="css/float-boxes.css">
 <style>
    #parent_box {
        width: 55%;
        height: 300px;
        background: #000;
        margin: auto;
    }
   
    .fl {
        float: left;
    }
   
    .fr {
        float: right;
    }
   
    .fn {
        float: none;
    }
   
    .box {
        display: block;
        width: 200px;
        height: 80px;
        text-align: center;
        color: #fff;
        text-transform: capitalize;
        font: italic small-caps 22px/80px "Helvetica Neue";
        text-shadow: 0px 2px 1px rgba(0,0,0, .4);
    } 
   
    .red {
        background: #f00;
    }
   
    .green {
        background: #0f0;
    }
   
    .blue {
        background: #00f;
    }
    </style>
    </head>
<body>


 <div id="parent_box">
  <div class="red box">box 1</div>
  <div class="green box">box 2</div>
  <div class="blue box">box 3</div>
 </div>

 <div>
  <span>
   box
  </span>
  
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </div>

</body>
</html>

'css' 카테고리의 다른 글

nth-child 몇 번째 자식요소  (0) 2011.11.11
float 제어  (0) 2011.11.11
플로팅된 자식요소를 감싸 안으려면?</  (0) 2011.11.11
화면 표시 모듈 - display  (0) 2011.11.11
out-line  (0) 2011.11.11