Lay Theme Forum

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

    Text alignment broken after position set to fixed

    Bug Reports
    2
    3
    16
    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
      miltosbottis last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        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 placing

        maybe u should rather use the sticky feature
        https://www.instagram.com/p/CmG-curDQ_9/

        or use more css to position the row

        1 Reply Last reply Reply Quote 0
        • arminunruh
          arminunruh Global Moderator last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Post a link to where the problem is if possible, please <3
          I don't answer or check forum DMs, please just post on the forum.
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

          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

          Thanks!

          Online Users

          A

          Recent Topics

          • Search as icon instead of text?

          • FILTER Categories showing all projects

          • H

            Vimeo embed with autoplay and loop is really slow...help!

          • A

            website not loading on iphone safari

          laytheme.com