Justufying Text
-
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! -
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!
-
@arminunruh cool!!! thanks a lot :)
-
Yeah I changed the code a bit.
Try:.lay-textformat-parent ._fliesstext{ text-align: justify; }
-
@arminunruh super thanks! :)
-
@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 cssAny help is appreciated!
Thanks -
Dear @omoore
don't forget to put IMPORTANT behind the code:text-align: justify !important
Best!
Marius
-
@mariusjopen It works now - Thank you!
-
Great! Happy to hear!
-
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?
-
hey!
So I think you can find out the slug-* body class:
https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-pagethen 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
-
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
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
I don't answer or check forum DMs, please just post on the forum.