css grid, grid-area avoid items overlapping

梦想的初衷 提交于 2019-12-25 00:30:00

问题


I have the following css and markup

<div class="wrapper">
    <div class="content">Header</div>
    <div class="content">Sidebar</div>
    <div class="content">Content</div>
    <div class="content">Footer</div>
</div>

CSS

.content {
    grid-area: main;
}

The items on the grid overlap on the grid area. I instead want the items to come one after another on the grid area. Is this possible?

来源:https://stackoverflow.com/questions/55528419/css-grid-grid-area-avoid-items-overlapping

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!