Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #895024

    Hello,

    I have a bit of custom CSS that I’m using on my website. I want this to only be applied to the first page seeing when I add this quick css code. Im not too familiar with applying a page ID but found several threads on the enfold forum that touch base on this. I tried to add some page code but it didn’t seem to work.

    Here is my code which I want to applied to my home page (page_id=330 )

    @media only screen and (max-width: 767px) {  
      #av_section_1 {
        margin-top: 200px;
      }

    I tried this but is didn’t seem to work.

    @media only screen and (max-width: 767px) {  
      .page-id-330 #av_section_1 {
        margin-top: 200px;
      }
    @media only screen and (max-width: 767px)  #page-id-330 {  
       #av_section_1 {
        margin-top: 200px;
      }
    #895057

    Hey mcraig77,
    Try .home #av_section_1, otherwise please include the url to the page in question so we can take a closer look.

    Best regards,
    Mike

    #895358

    That worked. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Page specific CSS’ is closed to new replies.