Answer the question
In order to leave comments, you need to log in
How to align the contents of the cards on one line?
https://codepen.io/Icat/pen/OdXWbb
Pictures have different sizes.
The task is to align everything that comes after the pictures, i.e. so that the text 'hello' and 'world' are on the same line.
using flex or bootstrap
Answer the question
In order to leave comments, you need to log in
Wrap text in a block with class flex
<div class="flex">
<h2>Hello</h2>
<p>World</p>
</div>
.flex {
display: flex;
flex-direction: row;
align-items: baseline;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question