Site logo

Archived topic

How do I narrow the most part of a blog post?

3 replies · Started by Gabor on March 25, 2021

Viewing posts 1–4 of 4

Hi,
I’d like to narrow everything .inside-article except the featured image (and the rest of it like first paragraph, until the first h2 element) from the first occurrence of h2 until the very end of a blog post.

.inside-article
H1
FEATURED IMAGE
FIRST PARAGRAPH
h2
paragraph...
h2
paragraph...
/ end of .inside-article

I’d like leave the CAPITALS as set to 1024px and to narrow the normal text to 700px;
Thank you

Hi there,

You can try this CSS.

body.single .inside-article {
    max-width: 1024px;
}

body.single .entry-content *:not(p:first-child) {
    max-width: 768px;
}

Hi Elvin,
that worked great.
Thank you.

Nice one. Glad you got it sorted. No problem. :D

This archived topic is closed to new replies.