Text alignment broken after position set to fixed
-
I tried setting some text to a fixed and back position here
https://miltosbottis.com/mama-silkscreen/Although that setting works, it completely messes up the layout applied on that text, moving it to the left of the page and taking up all the page width.
Is there something I missed in what I'm trying to do here?
-
yea you're using custom css to fix the row
the way it behaves is totally normal, position fixed elements are not part of the document flow.
also it interferes with the placingmaybe u should rather use the sticky feature
https://www.instagram.com/p/CmG-curDQ_9/or use more css to position the row
-
oh!
maybe do this:
you can give a row a class of "sticky-row"
and then write css to make the row sticky:
.sticky-row{ position: sticky; top: 0; }
this will fix the row but still take up the space i think!
I don't answer or check forum DMs, please just post on the forum.
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. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
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