我在一个非常简单的 CSS 布局中有三列。在将内容添加到其中一个之前,它们看起来很完美,从而迫使页面滚动(在小提琴上向下滚动)。
我想要的只是让红色框始终进入页面底部(而不是窗口/屏幕,页面)。这如何用 CSS 来实现?
.column
{
background-color: red;
width: 400px;
/* Page height minus header */
min-height: calc(100% - 192px);
/* Align to bottom of the page */
position: absolute;
top: 192px;
}
/* Half the page width minus (1.5 columns + offset between columns) */
.left { left: calc(50% - 630px); }
.right { right: calc(50% - 630px); }
/* Half the page width minus 0.5 columns */
.center { left: calc(50% - 200px); }