Table & Rounded box | Page Layout Series Part XPLS ϴ. ϴ ȸ ߷ ϸ ´ٴ Ͱ PLS Part I ' ǥؿ page layout ϴµ ־ table div ' ٺ ڽſ ' ' ̶ 鿡 Դϴ. ̷ ְ پ Ẹ ų 谡 ̴ κе Ctrl + X ⸦ ϴ ٶ 10ȸ PLS ü з κ з Դϴ...^^ , κ ̷ , ϴ ڽ δ ִ ̸ մϴ. PLS ϳ ȸ ġ ۰ ۰ϴ ó, ־ ü ϳ ϰ ؾ Ǵµ, ¨ Ƿ 䳻 翬ϰ, ؼ δ㵵 ġ ʾҽϴ. δ ǰ ̳ ٷ Դϴ. , PLS X ' ' PLS ̶ ٴ web page design ٷϴ κ ο ̶ ֽϴ. ġ rounded box ϸ鼭 PLS θ ϰڽϴ. border ִ rounded box
ó ũ div 4 ġ ļ ó div ָ border ȵ κб border ˴ϴ. θ ִ rounded box κ ձ θ border ʿ 4 (1, 2, 3, 4) иؼ ؾ ȴٴ Դϴ. Ƿ ( case '4c') ʰ rounded box иϵ ϰڽϴ. ݵ 9 иؾ Ǵ ƴϸ, ణ ٸ װ ⼭ ϰڽϴ. Table & divٸ θ ִ rounded box µ div table 츦 ϰڽϴ. 켱 div Ѵٸ Ʒ ֽϴ. div θ ִ rounded box code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
<!--
.tl_ffc_b, .tr_ffc_b, .bl_ffc_b, .br_ffc_b{width:20px;height:20px;float:left;}
.tl_ffc_b{background:url(corners/ffc/tl_b.gif) no-repeat top left;}
.tr_ffc_b{background:url(corners/ffc/tr_b.gif) no-repeat top right;}
.bl_ffc_b{background:url(corners/ffc/bl_b.gif) no-repeat bottom left;}
.br_ffc_b{background:url(corners/ffc/br_b.gif) no-repeat bottom right;}
-->
</style>
</head>
<body>
<div>
<div class="tl_ffc_b"></div>
<div style="width:300px;height:19px;background:#ffc;float:left;border-top:1px solid #999">
</div>
<div class="tr_ffc_b"></div>
</div>
<div style="clear:left;">
<div style="width:19px;height:200px;background:#ffc;border-left:1px solid #999;float:left;">
</div> <!-- -->
<div style="width:260px;height:160px;background:#ffc;padding:20px;float:left;">
</div>
<div style="width:19px;height:200px;background:#ffc;border-right:1px solid #999;float:left;">
</div>
</div>
<div style="clear:left;">
<div class="bl_ffc_b"></div>
<div style="width:300px;height:19px;background:#ffc;float:left;border-bottom:1px solid #999">
</div>
<div class="br_ffc_b"></div>
</div>
</body>
</html>
code ߿ height:300px; button code ϸ height div height þ ¿ div height ʴ´ٴ ֽϴ. ̷ div 빰 þ width height Ǵ þ Ǵ κ(width þ 1, 4. height þ 2, 3.) ȴٴ ֽϴ. Ʒ table ϸ Ʒ 1, 2, 3, 4 width height þٴ ֽϴ. *** Ʒ ϹǷ 忡 ó cursor ְ Ʒ Ǵ ߰ϸ ü table ũⰡ ˴ϴ. IE only...
table θ ִ rounded box code
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="20" height="20"><img src="corners/ffc/tl_b.gif" /></td>
<td style="background-color:#ffc;border-top:1px solid #999;"> </td>
<td width="20"><img src="corners/ffc/tr_b.gif" /></td>
</tr>
<tr>
<td style="background-color:#ffc;border-left:1px solid #999;"> </td>
<td style="background-color:#ffc;"> .</td>
<td style="background-color:#ffc;border-right:1px solid #999;"> </td>
</tr>
<tr>
<td width="20" height="20"><img src="corners/ffc/bl_b.gif" /></td>
<td style="background-color:#ffc;border-bottom:1px solid #999;"> </td>
<td width="20"><img src="corners/ffc/br_b.gif" /></td>
</tr>
</table>
̿ table div ֽϴ. ,
и table ̶ ֽϴ. table table 1, 2, 3, 4 κ Ǵ , ٷ table auto layout ̶ ⺻ ֱ Դϴ. Table auto layout ؼ Ʈ CSS > table > table-layout property table ø table ⺻ auto Ǿ ִ ִµ, table-layout:fixed table ٷ auto layout ϰ ִ Դϴ. auto layout table̶ ϰ 鸱 CSS fixed table layout ʴ table HTML col, colgroup, tbody table auto layout table Դϴ. Auto layout table & fixed layout tabletable ϸ div ȭ鿡 rendering Ǵ ӵ ٰ ϴµ װ Դϴ. ۿ Ʒ table ü ϴ element ֽϴ. Ʒ table, tr, td 3 element ü table > tr > td μ ϳ block ̷ Ǵ Դϴ. , ڰ ٴ . п θ ִ rounded box table ó ִ Դϴ. table
<table>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
̷ <table> ؼ </table> ӿ tr, td ֽϴ. <tr> </tr> μ tr ӿ td ó ˴ϴ. markup tag ˸ start tag tag ˸ end tag ־ μ ϳ markup markup ο ǹ̳ Ϸᰡ Ǵµ table table tr, td óǰ </table> table tag Ϸ ǹǷ ȭ鿡 table rendering Ǵ ӵ Ʒ div div<div> </div><div> </div> ó ۰ ݺǴ Ͱ 翬 ۿ ϴ. ̶ table ִ ü 濡 ݸ鿡 div ٴ Դϴ. װ table div , װ ɱ? ؼ fixed layout table auto layout table MSDN Library test page Ŭϰ ô. , 2 ̻ test page load ų 쿡 / ͳ ɼ / ӽ ͳ / ϰ load Ѿ cache Ǿ ̸ ֽϴ. test page table ӵ ̴ test ϴ ǻ ȯ(, ͳ ȸ ӵ ) ̰ ֽϴٸ ʿ ణ ٴ ֽϴ. cell ũ⸦ width:20%, height:16px ϰ table tag table-layout:fixed cell size (fixed) ױ Դϴ. ̿ table-layout fixed ũ⸦ ϸ </table> table tag Ϸ ʾƵ parsing cell 켱 óϰ ˴ϴ. cell rendering table, tr tag ʰ rendering ǹǷμ ٸ block level element ӵ rendering DZ table-layout:fixed table ۿ ϴ. Page layout & table fixed layout table cell ŭ div ߸ İ ȭ鿡 Ÿ ? table test page cell 4000 û table Դϴ. ٸ div testϸ ñ. ô. Div 4000 box div test page . ŭ İ ߴ? ʽϴ. 4000 div block box óϷ ȯ ǻͶ ణ ó ð Դϴ. 4000 cell 4000 div ٰ ¿ ʿ䵵 ϴ. ֳϸ table page layout 4000 Ǵ cell ʿ ϰڽϱ? ؾ 10 Դϴ. div ӵ鿡 ȿ̶ ϴ Դϴ. ӵ ٵ ȸ ۷ ϴ code table ϴ ϱ div ̴° ̶ ϴ ξ ־ Դϴ. 2004 迡 ϸ ̱ ʰ ͳ OECD 12 ֽϴ. ٸ OECD ߿ ʰ ͳ 1 ϱ? ٷ ѹα, 츮 Դϴ. ұϰ ٿε ӵ Ϳ Ҹ Ͷ߸ ʽϱ? ^^... ̱ дٺ 츮ó ʰ ͳ ڵ ʰ ͳ ϱⰡ Դϴ. Ÿ ʴ´ٴ°. , ųι Ÿ ڰ ġ ؼ ż ʰ ͳ ǵ µ, ' Ŵϱ Ⱦ !' ϸ 忡 (߯) ּ Ÿ(: ) . ^^ (̷ ° ƴѰ?) OECD ʰ ͳ 1 츮 ܿ cell ̳ div rendering ӵ Ǵ... Ȥ 츮 Ʈ ϴ ̱ ڵ ؼ?... ! ٸ table page layout ׳ ...ƴմϴ...^^ page layout table ϶ ߿ ߿ ٷ (disabled) ټ(accessibility) () Դϴ. ΰ ϸ ϳ Ʒ headers attribute Ͽ table Է
<table border="1" summary=" Ư ̸ӿ ƹ 赵 .">
<caption> ̸ ǥ</caption>
<tr>
<th id="name"≯</th>
<th id="brood"></th>
<th id="record"></th>
<th id="nickname"></th>
<th id="note"></th>
</tr>
<tr>
<td headers="name">Ӿ</td>
<td headers="brood">terran</td>
<td headers="record">10 0</td>
<td headers="nickname"> Ȳ</td>
<td headers="note">ܿ 20 ߹ݿ ̶... ʴ ľ ڴ.</td>
</tr>
<tr>
<td headers="name">ö</td>
<td headers="brood">zerg</td>
<td headers="record">10 0</td>
<td headers="nickname">ö ƹ</td>
<td headers="note">ö ˱? ˸ ' ֺ.' ...</td>
</tr>
</table>
̷ table ġ(aural media) ռؼ
ȴٰ մϴ. ̿ headers, axis, axes, scope, abbr Ͽ table aural media Ư ġ ϴ markup table (structural) markup ̶ մϴ. ̷ markup table ϴ tag µ ʰ ش cell data headers Բ ȴٸ ð ͷ ſ ̰, ݴ markup ʾ ̰ table aural media Ѵٸ ڿ cell شǴ νϱ Դϴ. 쵵 ̷ κп Ű ߽ϴ. ó Ʈ ۾ ̷ ǿ ν ... ϸ ó ˾Ҵٰ PLS ϸ鼭 ڼ ˰ ... W3C ټ ħ ̷ table page layout ʴ° ٰ ϰ ֽϴ. ¿ table page layout markup ϶ ϴ±. (WAI Check point 5.4 ) 鿡 ƴ κ Ʈ ƹ ϴ. ̷ markup table ϱ. layout table ټ ? Դϴ... ε ټ table ѵ ϱ. , table page layout ʴ ɷ ټ̶ ذǴĴ . ̹ ȸ , ټ̶° ƴմϴ. ǥ̳ ټ ȫ Ʈ 쵵 ' Ʈ 1024 X 768 ȭ Ǿ ֽϴ.' 빮¦ ʾƼ 800 X 600 scroll bar ֽϴ. ̷ ϸ '~ 800 X 600 ֳ?' Ͻô Ȥ ϱ. 800 X 600 Ŀ 800 X 600 ϴ 640 X 480 ϴ. Windows 98̳ 2000 ġϸ ó hardware driver ãƼ ߴ ŭ ۾ ȭ ٷ 640 X 480 Դϴ. Ⱦ ڽϱ, ȵǴ °. ̷ ̰ڽϱ WAI ħ ߷ ʹ ʺڰ ƴ ̻ Ƿڵ ؿ ߱ ƽϴ. ̿ ټ ϴµ ؾ ΰ ƴ ŭ ϳ DZ Դϴ. ¼ ǥ ְ. ٰ ؼ ƴ϶ մϴ. ֳϸ ̷ Ƿؼ ټ̶ ǥ Ϻϰ ִ ̱ Դϴ. ٸ 츮 ؾ ΰ 帮ڽϴ. ټ ǥؿ ν ȯ츮 ڽ 繰 ġ ν ٲٷص ν ٲپ Ⱑ ־ װ ̷ ֽϴ. Ϲ ٸ ν ٲٴ ̾ ϰڽϱ. WAI ϴ ݵ Ѿ ƴ Ű , ߸ ' ' Դϴ. ٲٷ Ǵ Ҹ ߿ϰ ߿ ֽϴ. װ ٷ ؾ ǥؿ ° ִ° Դϴ. Ʈ ù ° HTML Ʈ Ұ ƹ ũ ٰ ص װ ħ ϰ ̾߱ ó, ǥؿ ν ٲٰص װ ü ų ִ ٸ ѳ ̻ Ұ Դϴ. Ѱ ټ ȫ ε, δ 巡 ʺ ƾ ȴٰ ϴ. ڵ鿡 ̹ Ʈ ġ ϱ ٴ ȹ ʺڵ鿡 ùٸ ˷ ִ ξ ȿ Ȯϱ . ֳϸ ʺڰ ڰ ɼ ״ϱ. ڰ ľ ϰ ְڽϱ. ڿ ȫ ̷ ̱. ڴ . Ⱦ Ͱ ʿ α̳ װ ϴ spec ʴ spec ˴ϴ. CAD α Ϸ ؼ ˸ û ɾ ġ '̰ ̸ ƴ?' ϸ ũ Դϴ. κ ' ڴ.' '~ װ? ʿ ſ. װ Ƚᵵ 鸸 µ .' ϴ ֽϴ. program ȸ翡 ʿ䵵 ? ϴ. ּ α £ Ƴ α̶ . HTML ϴ. ¥ ʿ䰡 element (depredated) ˴ϴ. table CSS level 3 ڸ ֽϴ. ϴ Blog h1, p, div, a κ ϱ layout table ʿ䰡 ְڽϱ? ڱⰡ ٰ ٸ 'table ʿ ̰, ǥؿ Ǵϱ ' Ѵٸ װ ü ... Table ǥ ü ̱淡... Yahoo Daum layout table ״ٰ 빮 , ¦ 鿩 table ϴٴ ... 쿡 page layout div ¥, voice-family CSS property ִ ǥذ ټ Ϻϰ ذ ϴ ִ ϴ. ٸ ƹ Ŀ ġ ̳ fusion food ϸ װ ¥ fusion food Ǵ ǰ. װ Fusion ƴ϶ confusion ̰. ó ټ̶ 鿡 page layout table Ѵٸ ֽϴ. layout ƴ data ǥϱ table ʿ ϴ Դ ȵ element Դϴ. Ʒ ѱ DOS version ó table ڸ Ἥ ǥ ۾ϴ ±. Ŀ table DZ ߽ϴٸ... table ڸ div ڰ Ѵٸ ġ ó Ʒ ѱۿ table ϴٰ ؼ ⲯ װ ' ׳ .' ϴ Ͱ ٸ ڽϴ. W3C ó HTML ϴ ȳ (Dave Reggett's introduction to HTML) table ո и ϰ ° ٶ ϰ ֽϴ. Ʋ Ͱ ǿ ⸦ ϰų ϴ Դϴ. ǿ ⸦ Ϸ ϸ ϰų ذ ִ ' ' ѷ ɷ Ǿ߸ ڰ ִٰ մϴ. Ƿ ü ų, ־ ü ȿ ð 鿩 ڱ θ ϴ° ǽϴ. ֳϸ ȵ 濡 'ȵ ϴ Ʋ ϴ° ƴ϶ ڱⰡ װ Ƴ?' ظ ״ϱ. table ո̾ ؼ ȵȴٸ table ü ϱ. ߰ ؼ table ǥؾ Ϳ ƹ table ϰ ֽϴ. տ ' markup' ߽ϴٸ... browser CSS property Ȳ ǥ Ʈ . ̷ ǥ϶ ž ǥ ǥ Ͱ ϸ ʹ Դϴ. ̷ ǥ ſ ǥ ٰ Ѵٸ ð (Visual Communication Design) ̶ ۿ ϴ. table ټ ߸ٸ table markup ϴ δ ؼ Դϴ. и ϱ. FireFox
A TIVLE, The Dream LayoutTIVLE... ó ...^^ ó element̴ 翬 ۿ. Ȥ PLS 4 Layout with positioning 'IML' ó 㹫Ͷ 峭 ġ ƴϳı? ƴմϴ. TIVLE TabLE dIV ռ Դϴ. ƴ ְ ־ table div ļ ο element ֳİ Ͻð? ִ ϴٸ table div ó, div table ó ִ ֽϴ. 켱 table div 츰 Ʒ layout . Ʒ leftCol, mainCol, rightCol ߿ ƹ ̳ cursor ְ ó ߰ϰų, enter ļ ٲ . Height þ ϴ. IE only... Table dream layout simulation
column ߿ κ̵ ߰Ǿ column ̰ þ ٸ ÿ ŭ ̰ ϰ ˴ϴ. Layout ϸ column ̿ border background ֱ mainCol ̳ ٸ column κ height ǵ ÿ ʿ䰡 ϴ. layout table ǥ ̰, Ʒ layout code dream layout ߽ϴ. Dream Layout sourceٸ ΰ. κ ϱ ؼ Ʒ code ô. ô. Ʒ code ߿ 2 div δ id="column_wrap" background-color 'royalblue' ϴܿ Ÿ° Ʋ. background-color:royalblue; IE ̰, FF ʽϴ. ٸ ǥؿ ´ ɱ? FF ó id="column_wrap" background-color 'royalblue' ʴ° ½ϴ. ֳϸ float( ǹ̷ 'ϴ', ' ִ.') positioning block box ڽ height þ tag height ʽϴ. ֱ block box Ƿ... Է
<div id="column_wrap" style="width:500px;background-color:blue;">
<div style="float:left;width:150px;background-color:tomato;">
leftCol
</div>
<div style="float:left;width:350px;background-color:gold;">
mainCol
<br /><br /><br /><br /><br /><br />
</div>
</div>
layout column class display:table-cell; ߰ ϹǷν IE FF 'column_wrap' δٴ Դϴ. FF 쿡 float:left; ʿմϴ. IE ǹǷ float:left; ǰ. ٶ ̰ 巡 IE display:table-cell; CSS Ѵٸ IE float:left; ʾƵ ǰڽϴ. PLS 鼭...ó ϴ. κп ó ߴ κб ٷ Ǿ, ũ þ κ ϰ 10 ȸ Ǿ. Ȧ մϴٸ, ٽ κ , PLS ù κ ٽ аԵǴ κе ֱ^^... ʺڸ ٰ ʺڰ PLS ణ̶ ϴ. ̹ ȸ ҵ浵 ſ ũٰ ֽϴ. ߿ Ư ǥ̶ κп ڽ ν Ƿؼ ǥؿ ſ ͼ , κ ˰ Ǿٴ° ū ҵ̶ ֽϴ. ߴ ó 巡 ǥؿ ν ٲ ִٸ ð ʿ ϴ. ó ǥؿ ν ٲٴ þ иϴٰ Ͻϴ. Ʈ ǥȭ ̻ ̷ ڽϴ. ó ̻Ʈ FF ߴ° ƴ϶ ǥؿ Դϴ. ⼭ PLS ϰ, Ʈ ǥȭ ģ , Ctrl + X κ ٽ ˰ڽϴ. ۵ о ֽô ϼ̽ϴ. ƿڽϴ... cadvance.org ۱ www.cadvance.org ֽϴ.
|
||||||||||||||||||||||||||||||||||||||||