그냥저냥 쓸만한 "세로바 그래프" (2)

자작은 아니니 고마워 하실 것은 없습니다.  관리자에 적용시키면 좀 있어보여서요!!!



-------------------------------------------------------------------------------------

 <head>
  <title>CSS세로 그래프</title>
    <style type="text/css">
 body {padding:0;margin:40px;font-size:9pt;font-family:Helvetica,Geneva,sans-serif;}
 h3 {font-weight:normal;display:block;width:600px;text-align:center;}
 /*ul*/
 ul#q-graph {
  border:2px solid #0063be;
  background:#adfe12 url(l2008524151456.png) repeat-x scroll 0 0 !important;
  background:#adfe12 repeat-x scroll 0 0;
  height:300px !important;
  height:304px;
  width:600px;
  position:relative;
  list-style:none;
  margin:1.1em 1em 3.5em;
  padding:0;
 }
 #q-graph li {
  position:absolute;
  text-align:center;
  bottom:0;
  padding:0
  margin:0;
 }
  /* ul li */
 li.qtr {
  width:150px;
  height:300px;
  border-right:1px dotted #41a3e2;
  z-index:2;
 }
 li#q1 {left:0;}
 li#q2 {left:150px;}
 li#q3 {left:300px;}
 li#q4 {left:450px;border-right:none;}
 /* ul li ul */
 #q-graph ul {list-style:none;}
 /* ul li ul li */
 li.bar {
  width:34px;
  color:#fff;
 }
 li.north {
  left:36px;
  background:#ddd url(바에 넣을 이미지 주소값을 넣어야겠죠?) no-repeat 0 0;
 }
 li.south {
  left:80px;
  background:#ddd url(바에 넣을 이미지 주소값을 넣어야겠죠?)) no-repeat -34px 0;
 }
  /* ul li divs */
 li#ticks {
  left:0;
  height:300px;
  width:100%;
  z-index:1;
 }
 div.ticks {
  position:relative;
  height:60px;
  border-top:1px dotted #41a3e2;
 }
 div.ticks:first-child {border-top:none;} /*only4 Firefx IE 7+*/
 div.ticks p {
  position:absolute;
  left:103%;
  top:-11pt;
 }
  </style>
 </head>
 <body>
<ul id="q-graph">
 <li id="q1" class="qtr">Q1
 <ul>
  <li class="north bar" style="height:111px;">18</li>
  <li class="south bar" style="height:99px;">16</li>
 </ul></li>
 <li id="q2" class="qtr">Q2
 <ul>
  <li class="north bar" style="height:198px;">32</li>
  <li class="south bar" style="height:210px;">34</li>
 </ul></li>
 <li id="q3" class="qtr">Q3
 <ul>
  <li class="north bar" style="height:260px;">43</li>
  <li class="south bar" style="height:198px;">32</li>
 </ul></li>
 <li id="q4" class="qtr">Q4
 <ul>
  <li class="north bar" style="height:111px;">18</li>
  <li class="south bar" style="height:198px;">32</li>
 </ul></li>
  <li id="ticks">
 <div class="ticks"><p>50</p></div>
 <div class="ticks"><p>40</p></div>
 <div class="ticks"><p>30</p></div>
 <div class="ticks"><p>20</p></div>
 <div class="ticks"><p>10</p></div>
</li>
</ul>
 </body>
</html>

---------------------------------------------------------------------------------


<<바에 들어갈 이미지입니다>>
|

댓글 4개

ㅎㅎ 이쁘네요 ^ ^
관리자 통계구성할때 넣었더니 많이들 좋아하시더라구요!
오와 이뻐요~!!! 지금찾는거 하구 함 적용시켜보고싶습니다~
적용 시키는 방법에 대해 자세히 알려주실 분 없으세요? 사용하고 싶네요..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 4,834
16년 전 조회 7,822
16년 전 조회 7,993
16년 전 조회 3,098
16년 전 조회 4,329
16년 전 조회 3,448
16년 전 조회 4,372
16년 전 조회 4,483
16년 전 조회 4,034
16년 전 조회 5,109
16년 전 조회 3,813
16년 전 조회 3,319
16년 전 조회 6,015
16년 전 조회 1.9만
16년 전 조회 4,345
16년 전 조회 3,495
16년 전 조회 2.2만
16년 전 조회 9,215
16년 전 조회 6,485
16년 전 조회 3,633
🐛 버그신고