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