Home › Forums › Support › CSS H2 margin on Blog post pages only This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 6, 2021 at 1:25 pm #1920936 Paul Hi There, I’ve added some CSS to create add a top margin on h2 on posts /* Add margin above h2 in posts */ .entry-content h2 { margin-top: 60px; } It works fine BUT it is also effecting the h2’s on non blog post pages. Is it possible to use a top margin value that only effects h2s within a post (not pages)? Cheers September 6, 2021 at 1:59 pm #1920958 LeoStaff Customer Support Hi there, Try this: .single .entry-content h2 { margin-top: 60px; } September 6, 2021 at 2:37 pm #1920971 Paul Perfect! Cheers Leo 🙂 September 6, 2021 at 3:10 pm #1920984 LeoStaff Customer Support Glad to help 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In