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. How to justify text and fit to the container?

How to justify text and fit to the container?

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 479 Views
  • 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.
  • B
    B
    barrybianco
    wrote on last edited by
    #1

    Hi!

    I would like to know how to fit the text to the wide of the container. Also, I need to justify some text but text-align:justify doesn't works.

    Thanks!

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Barry

      @barrybianco

      Do you have a link to the page where you would like this change to occur?
      If needed you can create a new "Text Format" and then apply any custom css you need to it:

      https://laytheme.com/documentation/textformats-and-webfonts.html

      I would also suggest looking into the 'Unit' vw "Viewport width"

      https://www.w3schools.com/cssref/css_units.asp


      Best ✨
      Richard
      1 Reply Last reply
      0
      • B
        B
        barrybianco
        wrote on last edited by
        #3

        Thanks for your response,

        I would like to fit the text of this because I would keep the text in 1 line and its change a lot depend of the size of the navigator.

        The justify is needed for the "related fonts" section, at the below of the page. Because I want to keep the links occupying the entire line. I could do it in separate containers but the baseline of each font shows different in this way (I don't know why).

        Thanks, I will try that you commented!

        1 Reply Last reply
        0
        • RichardR
          RichardR
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear Barry

          @barrybianco

          Thanks for the reply, i don't quite understand sorry, but i appreciate your description:

          "because I would keep the text in 1 line and its change a lot depend of the size of the navigator."

          As for the second question, you have this font "Carmensin Headline Regular" and the font-size has been set to 150px. px or 'pixels' are a fixed unit. They will not change based on browser size etc, so if the browser is smaller they are forced to move and occupy a different space.

          I would suggest looking into the use of % 'percentage' as this is a variable or responsive unit. This means that it will shrink or grow depending the size of its parent container. It's Parent container will most likely also resize with the browser so the font should resize too! 🌝

          You can change the unit from 'px' to '%' in text formats. Looking into other responsive units will help as well such as 'vw' & 'vh':

          https://www.w3schools.com/cssref/css_units.asp


          Best wishes
          Richard
          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