要素の配置についての私の苦しみは続きます:
<div id="container">
<div id="div1"></div>
<div id="div2"></div>
<div id="div3"></div>
</div>
#div1 {
right:0; // what I want - it's right border should be 0px from the parent's right border, regardless of any other div inside.
}
#div2 {
bottom:0; // it's bottom border should be 0px from the parent's bottom border, regardless of any other div inside.
}
#div3 {
margin-left:auto;
margin-right:auto;
// should be on the parent's center, regardless...
}
ですから、隣人ではなく、親を参照にしたいのです。