Site logo

Archived topic

Adding shadow box around container for specific post types

1 reply · Started by Dmitrii on October 7, 2022

Viewing posts 1–2 of 2

Some quick content:
- I have two main post types (directory listings and regular blog articles).
- The listing page is styled perfectly, so I don't want to change anything there.
- For the regular blog article, I'd like to add a shadow box around the container (without it impacting the listing post type).

I tried using this CSS but it impacts both post types:

.inside-article {
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
border-radius: 4px;
}

Hi there,

try this CSS:


.single-post .inside-article {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 4px;
    padding: 20px;
}
This archived topic is closed to new replies.