2
How do I let the 'title' align with the icon without the need to place the 'title' inside any div.
.card-blue,
.card-red,
.card-green,
.card-grey,
.card-yellow {
position: relative;
width: 300px;
border-radius: 4px;
background: #FFFFFF;
margin: 10px auto;
overflow: hidden;
padding: 0 0 50px 0;
}
.card-grey {
border: 1px solid #484848 !important;
}
.card-blue {
border: 1px solid #0091FF !important;
}
.card-red {
border: 1px solid #f65314 !important;
}
.card-green {
border: 1px solid #34a853 !important;
}
.card-yellow {
border: 1px solid #fbbc05 !important;
}
.card-red-head,
.card-blue-head,
.card-green-head,
.card-grey-head,
.card-yellow-head {
padding: 10px;
color: #FFFFFF;
}
.card-grey-head {
background: #484848;
}
.card-blue-head {
background: #0091FF;
}
.card-red-head {
background: #f65314;
}
.card-green-head {
background: #34a853;
}
.card-yellow-head {
background: #fbbc05;
}
/* Mobile */
@media only screen and (max-width: 550px) {
.card-blue,
.card-red,
.card-green,
.card-grey,
.card-yellow {
width: 95%;
}
}
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div class="card-red">
<div class="card-red-head">
<i class="material-icons">delete</i> TÍTULO
</div>
<div class="container-body">
texto
</div>
</div>
You can instead of setting an id, set a class #div { } instead use . class { } E in html <label ide="mylabel" class="class">
– Paulo Sérgio Duff
could create a response with the code changed?
– Hugo Borges