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. Fixed element

Fixed element

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 3.2k Views 2 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.
  • M
    M
    michael_vvc
    wrote on last edited by
    #1

    Hi Armin,

    is it still possible to fix an element by using simple parallax? I've checked this forum and it seemed to be possible with the old simple parallax.

    Thanks for your help!

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

      Hey!
      it's much better to give the element a class and then make it fixed using regular css.
      First in the gridder hover over your element, click the "<> class" button and enter a class: fixed-element

      Now you need to insert CSS in "Lay Options" -> "Custom CSS". You need to give the element a position like in a coordinate system with "top" and "left" like here:

      .fixed-element{
      position: fixed;
      top: 200px;
      left: 30%;
      z-index: 5;
      }
      

      You can also use "top" and "right" for example.
      See more examples and an explanation here:
      https://developer.mozilla.org/en/docs/Web/CSS/position

      1 Reply Last reply
      1
      • M
        M
        michael_vvc
        wrote on last edited by
        #3

        Hi Armin,

        thanks a lot for your help. One additional question to this topic: As I want to use my fixed elements as a navigation I would love to add a white menu bar behind these elements. Any chance to add a fixed div box or is there another way to work this out?

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4
          .fixed-element{
          position: fixed;
          top: 200px;
          left: 30%;
          z-index: 5;
          
          background-color: rgba(255,255,255,0.8);
          padding: 20px;
          }
          

          maybe something like this, with a background color that has some transparency and padding.

          1 Reply Last reply
          0

          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
          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