Back to Top Button sticky
-
-
HI Jan,
in the gridder you create an element with an image or a text. This element you give a class
fixed-element
.In the Custom CSS you do something like this:
.fixed-element { position: fixed; top: 100px; left: 100px; }
Play with it.
I hope that works for you.Best!
Marius
-
HI Jan,
in the gridder you create an element with an image or a text. This element you give a class
fixed-element
.In the Custom CSS you do something like this:
.fixed-element { position: fixed; top: 100px; left: 100px; }
Play with it.
I hope that works for you.Best!
Marius
@mariusjopen said in Back to Top Button sticky:
fixed-element
Hi Marius,
thanks a lot. It works. The only issue now is that the element is laying underneath the images.
How do I get it laying above?
And once more :) - Is there a way to place the Button fixed on the right side of the browser window,
always on the bottom of the page.Basically I want to create a back to top buttom sticking on the lower right corner of the browser window --- just a arrow which brings you up again.
Thanks
Jan* -
Hi @Jan
Have a look here:.fixed-element { position: fixed; top: 100px; left: 100px; z-index: 1000; }
To do the hover thing you might try this. I did not test it though:
.fixed-element { position: fixed; top: 100px; left: 100px; z-index: 1000; opacity: 0; } .fixed-element:hover { opacity: 1; }
I hope I could help!
Marius
-
-
-
HI @ute
ok. I see your problem.
The button moves – even it's position is fixed.
I think the only way to go here is to place the button outside if the Gridder with the Custom HTML.
Is that an option for you?
All the best!
Marius
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it