Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Fixed element

    General Discussion
    2
    4
    1895
    Loading More Posts
    • 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
      michael_vvc last edited by

      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 Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        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 Reply Quote 1
        • M
          michael_vvc last edited by

          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 Reply Quote 0
          • arminunruh
            arminunruh Global Moderator last edited by

            .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 Reply Quote 0
            • First post
              Last post

            Try this to fix issues before you post:

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. Now see if your problem solved itself
            5. Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            J
            M
            M

            Recent Topics

            • F

              X-button (close) on category page

            • T

              display resolution of thumbnails in image-hover

            • G

              Designer Websites for free Lay Theme.

            • A

              Lightbox on carousel

            laytheme.com