我有一个里面有 2 个 div 的容器。一个取容器的左侧,第二个(rightBarItems)应位于右侧,但我希望它的高度与容器的高度相同。基本上,我正在右侧创建一个列。
HTML:
<div class="container">
<div class="itemMain"><?php include("itemMain.php"); ?></div>
<div class="rightBarItems"><?php include("rightBarItems.php"); ?></div>
</div>
CSS:
.container {
overflow: hidden;
background: white;
padding-right: 20px;
-webkit-box-shadow: 4px 2px #492409, -4px 0 2px #492409;
-moz-box-shadow: 4px 0 2px -6 #492409, -1px 0 2px #492409;
box-shadow: 4px 0 2px #492409, -4px 0 2px #492409;
}