Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 236 Views
  • 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 Offline
    T Offline
    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 Offline
      T Offline
      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 Offline
        arminunruhA Offline
        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 Offline
          T Offline
          Toby
          wrote on last edited by
          #4

          @arminunruh

          Hi Armin

          I Could only find these posts

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

          http://laythemeforum.com:4567/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 Offline
            arminunruhA Offline
            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 Offline
              T Offline
              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 Offline
                arminunruhA Offline
                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                I also code custom websites or custom Lay features.
                šŸ’æ Email me here: šŸ’æ
                info@laytheme.com

                Before you post:
                1. When using a WordPress Cache plugin, disable it or clear your cache.
                2. Update Lay Theme and all Lay Theme Addons
                3. Disable all Plugins
                4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                This often solves issues you might run into

                When you post:
                1. Post a link to where the problem is
                2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                Online Users
                L
                lulu.ask.
                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