I built a simple container using CSS. For me to do DIV
that gets the text with blue background I ground a class that I created to put background where I call it. But I need to put the blue border on the DIV
that receives the content. How do I make the border inherit the color of the class
bg-blue-3
? If possible I wanted to do this in HTML because I'm going to create several containers with different colors.
.bg-blue-3 {
background-color: #42A5F5 !important;
}
.step-container {
margin: 0 auto;
border:1px solid;
border-radius: 3px;
background:#FFFFFF;
}
.step-container-head {
padding: 10px;
color: #ffffff;
text-align: center;
}
.step-container-body {
padding: 10px;
}
<div class="step-container container-width">
<div class="step-container-head bg-blue-3">
TEXTO
</div>
<div class="step-container-body">
conteudo
</div>
</div>