I am currently working on a design using bootstrap for an Alert message card. I had initially thought of using <div class="card">
, but I am unsure if that is the best approach.
Here is an image of what I am trying to create:
https://i.sstatic.net/u28Pd.png
My vision for the design is to have the left side of the alert in the background color #373C47 with an Icon in the center, and the right side with some text and a title.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="card depth-5 card-alert-danger">
<div class="card-body">
<div class="row">
<div class="col-md-3">
<p>Icon background color</p>
</div>
<div class="col-md-9">
<h4 class="card-title m-0">Title</h4>
<p class="card-text"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
</div>
</div>
</div>
</div>
I attempted to utilize columns for this design, but found it to be quite challenging. Are there any easier methods to achieve this layout?