body {
padding-right: 30px;
padding-left: 30px;
padding-bottom: 30px;
background-color: #228B9D;
}
div.tron {
padding-bottom: 40px;
padding-right: 250px;
padding-left: 250px;
}
.wrapper{
width: 1000px;
margin: 0 auto;
}
div.card-block {
padding-top: 15px;
padding-left: 15px;
}
<div class="wrapper">
<div class="container-fluid">
<div class="card flex-row flex-wrap" >
<img src="https://image.flaticon.com/icons/svg/1482/1482003.svg" alt="sop" style="background-color: #324A5E;">
<div class="card-block">
<h4 class="card-title">Title</h4>
<p class="card-text">Description</p>
</div>
<div class="w-100"></div>
<div class="card-footer w-100 text-muted">
<a href="#" class="btn btn-primary">BUTTON</a>
</div>
</div>
</div>
</div>
Hello, I'm currently learning how to build websites and have encountered an issue that's puzzling me. I'm attempting to adjust the height of a card using CSS. While changing the width to 1000px works perfectly fine, setting the height to 300px doesn't seem to affect the card at all. Why is it that only the width can be modified and not the height? Please advise if further details are needed. Thank you!