Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. thumbnail grid categories fixed.

thumbnail grid categories fixed.

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    Toby
    wrote on last edited by Toby
    #1

    Hi

    I've added a fixed header to one of my pages and have the thumbnailgrid scrolling behind it. but I'd like the categories to remain fixed not scroll up and be in front of the fixed header.

    The code on said page so far is this -

    .lay-thumbnailgrid-filter {
    position:fixed;
    top:0;
    left:12.1%;
    margin-top:90px;
    margin-right:20px;
    z-index:99;
    }

    body.slug-project_test .lay-hr {
    background-color: #d3d3c3;
    position:fixed;
    z-index:99;
    }

    body.slug-project_test .navbar{
    background-color: #f1f1f1 !important;
    height:17.5%;
    }

    Cheers
    Toby

    1 Reply Last reply
    0
    • T
      T
      Toby
      wrote on last edited by
      #2

      Any help please?

      I'd like the thumbnail grid images to go behind the navbar and the categories to remain above the navbar.

      As soon as I allocate a z-index higher than 1 to the navbar it hides the thumbnail grid and categories despite giving the thumbnail grid -filter a index of 99

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        i think theres a post about this on the forum here somewhere already no?

        read about stacking context
        https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

        T 1 Reply Last reply
        0
        • arminunruhA arminunruh

          i think theres a post about this on the forum here somewhere already no?

          read about stacking context
          https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

          T
          T
          Toby
          wrote on last edited by
          #4

          @arminunruh

          Hi Armin

          I Could only find these posts

          http://laythemeforum.com/topic/7217/category-filter-position?_=1680510893228

          http://laythemeforum.com/topic/6399/category-filter-position/4?_=1680510893231

          but they don't help with positioning of the categories text above the navbar.

          I don't understand why a fixed .lay-hr at a z-index at 20

          can appear above the navbar

          but a fixed .lay-thumbnailgrid-filter at a z-index at 99 is still hidden below said navbar!?

          Cheers
          Toby

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5

            its because of stacking context

            read the link i posted here, why do i post the link if u dont read it :)
            https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

            look through the divs, and set divs to position static that are position relative

            like:

            .row, .row-inner, .column-wrap{
            position: static;
            }

            but still read the article in the link and find out if there are any other things creating a stacking context. and then u need to use custom css so no extra stacking contexts are created

            T 1 Reply Last reply
            0
            • arminunruhA arminunruh

              its because of stacking context

              read the link i posted here, why do i post the link if u dont read it :)
              https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

              look through the divs, and set divs to position static that are position relative

              like:

              .row, .row-inner, .column-wrap{
              position: static;
              }

              but still read the article in the link and find out if there are any other things creating a stacking context. and then u need to use custom css so no extra stacking contexts are created

              T
              T
              Toby
              wrote on last edited by
              #6

              @arminunruh

              Thanks Armin - have it working.

              btw I did read the link but i'm the daft student who's changes the navbar to static and fails!!

              Thanks again
              Toby

              1 Reply Last reply
              1
              • arminunruhA
                arminunruhA
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                great toby!

                what was the css you used in the end to make it work?
                so others can see the answer ^^

                1 Reply Last reply
                0
                • D dcc referenced this topic on

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                Online Users
                I
                itsbadjujuju
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                laytheme.com
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Search