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. text content to be have fixed width after a certain size

text content to be have fixed width after a certain size

Scheduled Pinned Locked Moved General Discussion
10 Posts 3 Posters 950 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.
  • panteleyP
    panteleyP
    panteley
    wrote on last edited by panteley
    #1

    Hi,

    Was wondering, is there any way to make this text in the first section, not to adapt to grid 'so to say' after a certain width.

    6ec38b06-7ffe-4374-8cba-cc462f1c4625-image.png

    What I mean, is the text box above not to extend more than how it looks in the image.

    For reference, see this text box here:

    2d629856-f500-4cfa-aa22-143dbef93135-image.png

    It responds when the browser is decrasing, but this form/view won't be deformed doesn't matter how big the screen is,

    🤔

    panteleyP 1 Reply Last reply
    0
    • panteleyP panteley

      Hi,

      Was wondering, is there any way to make this text in the first section, not to adapt to grid 'so to say' after a certain width.

      6ec38b06-7ffe-4374-8cba-cc462f1c4625-image.png

      What I mean, is the text box above not to extend more than how it looks in the image.

      For reference, see this text box here:

      2d629856-f500-4cfa-aa22-143dbef93135-image.png

      It responds when the browser is decrasing, but this form/view won't be deformed doesn't matter how big the screen is,

      🤔

      panteleyP
      panteleyP
      panteley
      wrote on last edited by panteley
      #2

      @arminunruh

      I think I did it through some CSS,

      .main-text-cover {
      	width: 70%!important;
        align-items: center!important;
        justify-content: center!important;
      }
      

      Just now I have to find how to center it, :D

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

        can you right click the text, and then click:
        Screenshot 2024-09-20 at 13.09.16.png

        here you have settings for this i think this fixes it
        pls remove or comment out your css before using this

        1 Reply Last reply
        0
        • panteleyP
          panteleyP
          panteley
          wrote on last edited by
          #4

          Tried it before I went for the costum CSS, and while it was changing in the Gridder, it wasn't affecting at all the element in the website preview.

          Maybe isn't 100% precise, but the costum CSS is working fine for now.

          Thank you again, :)

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

            you could also think about using a textformat with fontsize in %. this way the text scales

            1 Reply Last reply
            1
            • panteleyP
              panteleyP
              panteley
              wrote on last edited by panteley
              #6

              @arminunruh Is there any way I can center the text block? 🤔 It's all I need now

              image.png

              1 Reply Last reply
              0
              • F
                F
                felix_rabe
                wrote on last edited by
                #7

                @panteley

                Add this to your main-text-cover css:

                left: 50%!important;
                transform: translateX(-50%);

                panteleyP 1 Reply Last reply
                1
                • F felix_rabe

                  @panteley

                  Add this to your main-text-cover css:

                  left: 50%!important;
                  transform: translateX(-50%);

                  panteleyP
                  panteleyP
                  panteley
                  wrote on last edited by
                  #8

                  @felix_rabe

                  Thank you man, it works almost perfectly. If I can only get rid of that fraction of a second when you load the page and the text box moves from right to center.

                  1 Reply Last reply
                  0
                  • F
                    F
                    felix_rabe
                    wrote on last edited by felix_rabe
                    #9

                    @panteley try this:
                    transform: translateX(-50%)!important;

                    maybe this forces your style to be applied at page load.

                    panteleyP 1 Reply Last reply
                    1
                    • F felix_rabe

                      @panteley try this:
                      transform: translateX(-50%)!important;

                      maybe this forces your style to be applied at page load.

                      panteleyP
                      panteleyP
                      panteley
                      wrote on last edited by
                      #10

                      @felix_rabe

                      and it worked! 🎉

                      Appreciate your help a lot! 🙏

                      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