<aside>
의 내용을 div
에 넣고 <aside>
대신 패딩을 할당 할 수 있습니다. 이렇게하면 FF와 Chrome의 패딩 (O 또는 IE는 테스트하지 않음)이 컨테이너를 기준으로 렌더링되도록 할 수 있습니다 (예 : <aside>
). 여기
<!-- HTML -->
<article>
<h1>Parent</h1>
<p>Content...</p>
<aside>
<div class="content">
<h1>Aside child</h1>
<p>The prime minister also suggested the move would have implications for the UK's EU and Nato membership.</p>
</div>
</aside>
</article>
//CSS
article{
background:chocolate;
padding-left:40%;
position:relative;
}
aside{
background:chartreuse;
position:absolute;
left:0;top:0;bottom:0;
width:20%;
}
article div.content { //'%' declarations relative to parent
width: 100%;
height: 100%;
padding: 20%;
border:20px solid black;
background-color: #fff;
}
는 행동에 : http://jsfiddle.net/KYyR7/3/