My latest project involves using Bootstrap4 to create a greenfooter div, which includes a container with four columns for organization. However, I seem to have run into some issues when it comes to styling the text within this setup.
In particular, I wanted to change the color of the H5 element to a lighter shade of green and make the links white with a lighter green color on hover. Unfortunately, my CSS code doesn't seem to be working properly, and I suspect there might be an error in my implementation. Can anyone spot where I've gone wrong?
html
<div class="w-100 g-py-30 greenfooter">
<div class="container">
<div class="row">
<div class="col-md-3">
<h5>McDowell Technical<br>
Community College</h5>
<p>54 College Drive<br>
Marion, NC 28752</p>
<p>
<a href="https://www.google.com/maps/place/McDowell+Technical+Community+College/@35.6555866,-81.9620476,15z/data=!4m5!3m4!1s0x0:0xf42cd81f2a7dd3ec!8m2!3d35.6555866!4d-81.9620476" target="_blank" class="g-color-white">Get Directions</a> </p>
<h5>call: 828-652-6021 </h5>
</div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
</div>
</div>
css
.greenfooter {
background-color: #5C8627;
color: white;
}
.greenfooter.container.row.col-md-3 h5 {
color: #C8E72F;
}
.greenfooter.container.row.col-md-3 a {
color: #ffffff;
}
.greenfooter.container.row.col-md-3 a:hover {
color: #C8E72F;
text-decoration: none;
}