Archived topic
Left Aligned Image with subsequent Heading gives messy layout
3 replies · Started by Christoph on June 19, 2020
If I have an inline left aligned image, a new heading (H1, H2, H3...) after the image is not below the image, but to the right of it, making a messy layout. I would prefer for a heading to start a new section BELOW any inline (left aligned or right aligned) image. Is there any way to do this? I am using a child theme, and adding something to the style.css would be easiest.
Just switched from my old theme (twenty thirteen) to GeneratePress premium, and I like it :)
Thanks!
Hi there,
you can try some CSS like this:
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
clear: both;
}
Worked perfectly!Many thanks for the fast response :)
You're welcome