Hello, I've been attempting to create some space between a button and a header. Unfortunately, no matter what value I input for the top margin, the two elements are not separating as expected.
I utilized Bootstrap to construct the button. Below is the pertinent HTML and CSS:
<div class="section banner">
<div class="container">
<h3>Always have the answer to "What's for dinner?"</h3>
<a class="btn-lg btn-default" href="#" role="button">Learn More</a>
</div>
</div>
CSS:
/* Banner */
.banner, .supporting {
text-align: center;
padding-top: 40px;
}
.banner {
background-color:#36343f;
height:180px;
color: #fff;
}
.banner a {
background-color: rgba(216,25,47,.5);
border: 0px;
color: white;
margin-top: 100px;
}
.banner a:hover {
background-color: rgba(216,25,47,1);
text-decoration: none;
color: white;
}
Regardless of my adjustments to margin-top:
, there seems to be no effect. Given that .banner a {
alters the button's color, I would anticipate its margin attribute to function similarly.
Is there anyone who can offer assistance?