@snoof에 명시된 바와 같이, 이것은 flexbox로 해결할 수 있습니다. 그 css 트릭에 대한 가이드는 매우 유용합니다, 확실히 그것을 읽으십시오.
레이아웃을 만들려고했는데 잘하면이 문제를 해결하는 방법을 이해하는 데 도움이됩니다. 경고,이 코드는 꽤되지 않습니다.
https://codepen.io/anon/pen/RjLVWE
HTML :
<div class="wrapper">
<div class="left">
<div id="circle-1" class="circle">
<div class="circle-inner"></div>
</div>
<div id="box-1" class="box">
<div class="box-inner"></div>
</div>
</div>
<div class="right">
<div id="box-2" class="box">
<div class="box-inner"></div>
</div>
<div id="circle-2" class="circle">
<div class="circle-inner"></div>
</div>
<div id="box-3" class="box">
<div class="box-inner"></div>
</div>
</div>
</div>
CSS :
.wrapper,
.left,
.right {
display: flex;
}
.left,
.right {
position: relative;
}
.left {
width: 20%;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
.right {
width: 80%;
flex-wrap: wrap;
flex-basis: auto;
}
.box,
.circle {
padding: 1em;
}
.box {
flex-grow: 1;
}
.box-inner {
background-color: #000;
}
.circle-inner {
padding: 7em;
background-color: #aaa;
border-radius: 100%;
}
#box-1 {
width: 100%;
height: 100%;
}
#circle-2 {
align-self: flex-end;
}
#box-1 .box-inner {
width: 100%;
height: 100%;
}
#box-2 .box-inner {
padding: 10em;
}
#box-3 {
width: 100%;
}
#box-3 .box-inner {
padding: 20em;
}
와우! 고마워요! 나는 더 많은 관심과 링크를 읽을거야. 서클은 이미지이기 때문에 페이지에 올바르게 삽입하는 데 어려움을 겪었지만 이제는 알아낼 것입니다. 다시 감사합니다! –