I've been attempting to place text and a button inside a box, but I'm encountering issues with fitting them on medium and small screens. So far, the methods I've tried have not been successful.
Below is the code I am currently using:
* {
background: #0E2A38;
}
.box {
color: white;
height: 230px;
background: green;
}
.explore {
font-size: 15px;
text-align: center;
padding: 35px 25px;
height: 230px;
color: white;
background: #3161a3;
}
#exploreButton {
width: 85%;
color: #3161a3;
background: white;
border-radius: 2px;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div class="row d-flex">
<div class="col-9">
<div class="box">
</div>
</div>
<div class="col-3">
<div class="explore">
<p id="exploreTitle">At vero eos et accusamus et iusto</p>
<p id="exploreParagraph">Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Recusandae dicta ut illo reiciendis delectus maiores dicta.</p>
<button type="button" class="btn" id="exploreButton">Explore</button>
</div>
</div>
</div>