• Resolved vadiko

    (@vadiko)


    Hello.
    I wanted to add css box-shadow to excerpts on the blog page and archives and added such css code
    `article {
    padding: 1.0rem;
    border: 1px solid #e6e6e6;
    border-bottom: 2px double #f60 !important;
    box-shadow: 0 0 3px #CACACA;
    }

    On the pages of archives and categories, everything is fine. as i wanted the
    screenshot https://prnt.sc/oowk47
    But these styles also applied to blog pages and posts.
    page screenshot https://prnt.sc/oowm7o
    screenshot post https://prnt.sc/oowls6
    Please tell me the correct css article
    so that the styles do not change the style of the page
    but acted only on the pages of the blog and archives

    Thank.
    Google translator

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Themonic

    (@themonic)

    Hi,

    You can use

    .blog article {
    CSS code here
    }

    to target blog page

    or

    .single article {
    CSS code here
    }

    to target single post and pages

    Thread Starter vadiko

    (@vadiko)

    Thanks a lot.
    You’ve been very helpful.
    The code works fine.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpts for CSS styles’ is closed to new replies.