這是我的網頁http://www.noor-azmi.com/element/company.html自舉填充BG顏色
正如您所見,上面有2個灰色框。我不希望他們之間存在差距。我希望它被合併成一個矩形框。
它們都在不同的列中,左邊的是col-8,右邊是col-4。當我在瀏覽器中檢查時,它們之間似乎有15px的填充。
我確定填充,但填充也可以有相同的BG顏色?那麼這將解決這個問題。謝謝
這是我的網頁http://www.noor-azmi.com/element/company.html自舉填充BG顏色
正如您所見,上面有2個灰色框。我不希望他們之間存在差距。我希望它被合併成一個矩形框。
它們都在不同的列中,左邊的是col-8,右邊是col-4。當我在瀏覽器中檢查時,它們之間似乎有15px的填充。
我確定填充,但填充也可以有相同的BG顏色?那麼這將解決這個問題。謝謝
分開灰色的部分到另一行,你很好去。
<div class="row">
<div class="our_company col-sm-8">
<h2>Our Company</h2><br>
<p>As the name indicates, Element Design Studio is a boutique design studio that provides landscape master planning and full serviced landscape architecture services for hotels, resorts, residential developments, mixed-use projects and golf course landscapes. Headquartered in Singapore, Element was co-founded by Gregory Kunak in 2011 based on simple and straightforward fundamentals; to provide Clients with the highest quality design services.<br><br>
Since 2011, Element has provided design services for a vast amount of projects located in 16 countries, consisting of Bangladesh, Egypt, Guinea, India, Indonesia, Laos, Kenya, Korea, Malaysia, Mauritius, Nepal, Saudi Arabia, Seychelles, Singapore, Sri Lanka and Vietnam. <br><br>
Whether appointed to provide landscape master planning services on a 100 hectare mixed-use development or engaged to provide detailed landscape design services for a hotel, resort or luxury residential condominium, Element takes immense pride with providing the highest quality of design excellence throughout every stage of the project. Above all, it is our fundamental goal to ensure that our Clients achieve a successful landscape product.</p><br>
</div><div class="our_leader col-sm-4">
<h2>Our Leadership</h2><br>
Gregory Kunak<br>
<h3>Managing Director</h3>
<img src="image/Gregory-Kunak-Profile.jpg">
<p>After working for 20 years with two of the largest and most prominent landscape architecture firms in the United States and Singapore, Gregory Kunak co-founded Element in 2011.<br><br> Through his career, Gregory has gained extensive design experience on many notable hotels, resorts, residential developments and mixed-use projects throughout the United States, Caribbean, Middle East and majority of Asia. As Managing Director of Element, Gregory is responsible for every aspect of the company.<br><br> As a registered landscape architect, Gregory is responsible for ensuring that each and every project adheres to the most stringent health, safety and welfare standards while striving to achieve design excellence. He is a rollercoaster enthusiast, enjoys the outdoors and horticulture and supports the Pittsburgh Steelers. </p></div>
</div>.
試試這個, 你需要做出改變你div
HTML代碼:
<div class="row">
<div class="col-md-12 bg-grey">
<div class="col-md-8">
This is col 1
</div>
<div class="col-md-4">
This is col 2
</div>
</div>
</div>
CSS代碼:
.bg-grey {
background-color: grey;
}
填充總是顯示了同樣的BG-色 –
你可以做的是添加一行,並刪除整個內容的灰色部分並添加到col-md-12 – RemyaJ
中,在一個「col-md-12」中使用這兩列,並使用添加一個類並覆蓋內部列的填充。給col-md-12 div分配br顏色(爲bg顏色使用另一個分類) – Phantom