HTML5 CSS3 布局

标签 html css

我是网页设计的初学者,我在修复网页布局方面遇到了问题。我想用 aside 元素制作一个两列的内容区域,但我找不到正确的方法。我试图减少部分的宽度,但没有奏效。有人可以告诉我一个关于我的 css 代码的好选择吗?谢谢!

article, aside, footer, header, main, nav, section{
    display: block;
}
#wrapper {
    margin:0 auto;
    width: 96%; /* Holding outermost DIV */
}
#header {
    margin-left:auto;
    margin-right:auto;
    background-color: #165E00;
    width:1000px;
    color:white;  
    padding:10px;    
}
strong text
#section {
    margin-left:156px;
    font-family: Sans-Serif;
    background-color:#FFDD00;
    height:1900px;
    width:1000px;
    padding:10px;   
    text-align: justify;    
}

最佳答案

对于以这种方式使用列的网站,我建议检查响应式/流体网格系统,例如 bootstrap、foundation、skeleton 等

关于HTML5 CSS3 布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30145966/

相关文章:

javascript - 从 div 元素中读取一个数字值并四舍五入到小数点后两位

javascript - 如何遍历本地(服务器端)文件夹的所有元素?

html - CSS :active in iOS

javascript - 使用 jQuery 使子 DIV 大于父 DIV

javascript - jQuery 表格分页和 Bootstrap 按钮在 IE10 和 11 中不起作用

html - CSS 还是编码?如何使结果并排列出而不是彼此重叠

javascript - 如何为按钮设置图像和为图像设置悬停效果

jquery - 我无法使用 Bootstrap 的 "well"命令在我的网站上创建一个灰色的大框

php - 哪种方法更适合搜索引擎优化 (SEO)?

html - 正确获取 img 内容的正确方法?