Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #920402

    Hello. Please see this image for desirables.

    ONLY on the home page (ID 2125), I need to adjust the header for Media Query 812px.

    This CSS has no impact
    @media only screen and (max-width: 812px) {.page-id-2125 .html_header_top.html_header_sticky #main {padding-top:50px!important;}}

    This CSS works, but also impacts EVERY page. Not sure why the Page ID is not working.
    @media only screen and (max-width: 812px) {.html_header_top.html_header_sticky #main {padding-top:50px!important;}}

    Thank you!

    #920652

    Hey WP Turned,

    You are not following the DOM tree structure in your CSS, that is likely why it’s not working. The page id class comes after the html_header_top class for instance, but you are calling it before so the CSS will be ignored.

    Best regards,
    Rikard

    #920826

    Good to go, thank you.

    #920961

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.