Regardless of the number of lines in the title, the paragraph content should always start on the same line. The post info (Clarkson Smiles and the date), title, and content are all in the same container.
I am using Elementor Pro, and since it cannot make the content always start on the same line, I tried using CSS.
my code doesnt work. Please help. thanks
.post {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
.post-content {
flex-grow: 1;
}
Please also see this sample website – https://torontonorthperiodontics.ca/blogs/
2
Answers
Give the minimum height to every title for the two lines. After you use the line clamp for the set, all title and content start for the one line.
full Code would be nice, but the main issue is overlapping text from title takes control of spacing/ height. thus if you have lets say one word title for one card, and the other card has 25 word title, all of them will be pushed down because of the 25 word title.
A solution here is to make the height of the title fixed through clamping system — line clamp.
for example, you make the height of the title fixed to 2 lines. and if the title goes over two lines, you just add an ellipsis at the end to better control.