.brand {
font-size:1.2em;
color:#777 !important;
display:inline-block;
vertical-align: middle;
}
.car {
display:inline-block;
vertical-align: middle;
padding:5px 30px 0px 20px;
}
.car.img {
margin:0 !important;
width:100% !important;
height:auto !important;
}
.date {
text-align: right;
font-size:14px;
color: grey;
}
<div id="wrapper">
<div class="car">
<img src="http://via.placeholder.com/100x100">
</div>
<div class="brand">
BRAND BRAND BRAND BRAND HELLO
<div class="date">
<time>
12 november 1865
</time>
</div>
</div>
</div>
When I add an additional HELLO
to my brand-title
, it causes the text to be pushed below the image. Is there a way to ensure that when the brand-title
becomes longer, it always remains to the right of the image and vertically centered? Also, it should maintain this layout for responsiveness without using float or flexbox properties.