Site logo

Archived topic

Change blog posts container width

3 replies · Started by Ivan Cazorla on November 29, 2018

Viewing posts 1–4 of 4

Hi there, I know that for changing the width of the container it can be done like for example:

#content {
    max-width: 700px;
}

But how can I make this to only affect the blog posts, and not affect all the other containters such as products?

Thanks,
Ivan

Hi there,

you can use one of the body class selectors so for single post you would target:

.single-post #content

Thanks!

You're welcome

This archived topic is closed to new replies.