html,css 본문 가변폭
2단
html:
css:
- #container{float:left;width:100%;margin-right:-200px}
- .content{margin-right:200px}
- .aside{float:left;width:200px}
3단
html
<div id="container">
    <p>#container</p>
    <div class="snb">
        <p>.snb</p>
    </div>
    <div id="content">
        <p>#content</p>
    </div>
    <div class="aside">
        <p>.aside</p>
    </div>
    <div class="clear"></div>
</div>
    <p>#container</p>
    <div class="snb">
        <p>.snb</p>
    </div>
    <div id="content">
        <p>#content</p>
    </div>
    <div class="aside">
        <p>.aside</p>
    </div>
    <div class="clear"></div>
</div>
css
#container{*display:inline-block;_width /**/:100%;padding-right:200px;padding-left:200px}
#container:after{display:block;clear:both;content:''}
.snb{float:left;position:relative;left:-200px;width:180px;margin-right:-180px}
#content{float:left;width:100%}
.aside{float:left;position:relative;left:200px;width:182px;margin-left:-182px}
#container:after{display:block;clear:both;content:''}
.snb{float:left;position:relative;left:-200px;width:180px;margin-right:-180px}
#content{float:left;width:100%}
.aside{float:left;position:relative;left:200px;width:182px;margin-left:-182px}
html,css 본문 가변폭
Reviewed by Unknown
on
오후 3:50
Rating:
댓글 없음: