Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. Justufying Text

Justufying Text

Scheduled Pinned Locked Moved General Discussion
text typo justi
13 Posts 5 Posters 1.8k 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.
  • I Offline
    I Offline
    idanshe
    wrote on Sep 15, 2015, 11:26 AM last edited by
    #1

    Hello Armin!

    I have a question regards the text block. I would like to place the text as a blocksatz, instead of flattersatz. How is it possible to get to the code? if i want it for a text format will it be possible to change it once instead of each text block? and should i just replaced "intend left" to "justify"?
    THANKS!

    1 Reply Last reply
    1
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Sep 15, 2015, 11:38 AM last edited by
      #2

      Good question! :D
      Ok so let's say you created a textformat called "justifiy".

      Then in Lay Options -> Misc Options you enter this CSS:

      ._justifiy{
      text-align: justify;
      }
      

      Let me know if that works!

      I 1 Reply Last reply Sep 15, 2015, 11:39 AM
      0
      • A arminunruh
        Sep 15, 2015, 11:38 AM

        Good question! :D
        Ok so let's say you created a textformat called "justifiy".

        Then in Lay Options -> Misc Options you enter this CSS:

        ._justifiy{
        text-align: justify;
        }
        

        Let me know if that works!

        I Offline
        I Offline
        idanshe
        wrote on Sep 15, 2015, 11:39 AM last edited by
        #3

        @arminunruh cool!!! thanks a lot :)

        I 1 Reply Last reply Oct 13, 2015, 7:54 PM
        0
        • I idanshe
          Sep 15, 2015, 11:39 AM

          @arminunruh cool!!! thanks a lot :)

          I Offline
          I Offline
          idanshe
          wrote on Oct 13, 2015, 7:54 PM last edited by
          #4

          @arminunruh hey armin! after the update of the lay theme my text isn't being justifying.. what should i do?

          thanks!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Oct 14, 2015, 8:20 AM last edited by
            #5

            Yeah I changed the code a bit.
            Try:

            .lay-textformat-parent ._fliesstext{
            text-align: justify;
            }
            
            I 1 Reply Last reply Oct 14, 2015, 11:38 AM
            0
            • A arminunruh
              Oct 14, 2015, 8:20 AM

              Yeah I changed the code a bit.
              Try:

              .lay-textformat-parent ._fliesstext{
              text-align: justify;
              }
              
              I Offline
              I Offline
              idanshe
              wrote on Oct 14, 2015, 11:38 AM last edited by
              #6

              @arminunruh super thanks! :)

              1 Reply Last reply
              0
              • O Offline
                O Offline
                omoore
                wrote on May 24, 2018, 4:01 PM last edited by
                #7

                @arminunruh
                Is this code still working in 2018?

                If I create a "paragraph format" and "justify" the sample text using the justify block button, and then apply the format to text in the gridder, there is no change.
                I put in the code in the lay options --> custom css

                Any help is appreciated!
                Thanks

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mariusjopen
                  Global Moderator
                  wrote on May 25, 2018, 7:31 AM last edited by
                  #8

                  Dear @omoore
                  don't forget to put IMPORTANT behind the code:

                      text-align: justify !important
                  

                  Best!

                  Marius

                  www.mariusjopen.world

                  O 1 Reply Last reply May 28, 2018, 6:37 PM
                  0
                  • M mariusjopen
                    May 25, 2018, 7:31 AM

                    Dear @omoore
                    don't forget to put IMPORTANT behind the code:

                        text-align: justify !important
                    

                    Best!

                    Marius

                    O Offline
                    O Offline
                    omoore
                    wrote on May 28, 2018, 6:37 PM last edited by
                    #9

                    @mariusjopen It works now - Thank you!

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mariusjopen
                      Global Moderator
                      wrote on May 30, 2018, 11:20 PM last edited by
                      #10

                      Great! Happy to hear!

                      www.mariusjopen.world

                      1 Reply Last reply
                      0
                      • Y Offline
                        Y Offline
                        yelmarb
                        wrote on Oct 6, 2023, 10:28 PM last edited by
                        #11

                        I'm trying to justify text on a specific mobile page but for the life of me I can't make it work.

                        @arminunruh could you please tell me how can I target specific text on a mobile only site?

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          arminunruh
                          Global Moderator
                          wrote on Oct 7, 2023, 8:30 AM last edited by
                          #12

                          hey!

                          So I think you can find out the slug-* body class:
                          https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

                          then in lay options → custom css & html

                          in css for mobile, do:

                          .slug-yourslug .text *{
                          text-align: justify !important;
                          }
                          

                          the .slug-yourslug makes it so its only on that one page

                          1 Reply Last reply
                          0
                          • arminunruhA Offline
                            arminunruhA Offline
                            arminunruh
                            Global Moderator
                            wrote on Oct 7, 2023, 8:32 AM last edited by
                            #13

                            Screenshot 2023-10-07 at 10.31.22.png

                            of course if you wanted the text to be justified on mobile and desktop you could create a textformat and use text align, the far right icon

                            1 Reply Last reply
                            1
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            I also code custom websites or custom Lay features.
                            💿 Email me here: 💿
                            info@laytheme.com

                            Before you post:
                            1. When using a WordPress Cache plugin, disable it or clear your cache.
                            2. Update Lay Theme and all Lay Theme Addons
                            3. Disable all Plugins
                            4. 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:
                            1. Post a link to where the problem is
                            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                            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