【发布时间】:2017-06-18 22:07:30
【问题描述】:
我已经为此工作了大约一周。我使用引导程序在两列中对齐了两个类,并在内容下方创建了另一个单独的类。当我预览网页时,单独的类与两个类对齐,而不是单独的类位于 2 列网格下方。如何将单独的类放在两列引导网格下?下面是结果的图像,以及使用的代码。谢谢
<div class="prod_section">
<div class="border col-md-6">
<img src="help.jpg" class="word" alt="h">
<h2 class="header">SHIRT</h2>
</div>
<div class="border col-md-6 ">
<img src="img/help_two.jpg" alt="" class="word">
<h2 class="header"> URBAN SHIRT</h2>
</div>
</div>
<div class="seperate">Is BOOTSTRAP suppose to appear like this?</div>
.prod_section{
margin:auto;
width:1300px;
margin-top:600px;
margin-bottom: 600px;
}
.word{
max-width:90%;
/*box-shadow: 10px 10px 20px #bababa;*/
}
h2{
font-family: 'Montserrat';
font-weight:700;
}
.header{
padding-top:20px;
}
body{
background:white;
}
【问题讨论】:
标签: html css twitter-bootstrap grid