Justify text in article using override.css

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Mar 24, 2015 8:57 pm
Reply with quote
Report this post
Hi!

I was wondering how can I set text-align:justify in all articles without needing to mark it using the editor. Using override.css will be a good idea, but I'm completely lost. Any hint?

Thanks in advance,

Sergio
User avatar
Senior Boarder

GK User
Wed Mar 25, 2015 7:05 am
Reply with quote
Report this post
Hi,
if you need it in general use simple rule
Code: Select all
p { text-align:justify; }

or
Code: Select all
#gkMainbody p { text-align:justify; }


In most cases a paragraph is used in content like articles or k2 items.
User avatar
Platinum Boarder

GK User
Fri Mar 27, 2015 9:54 am
Reply with quote
Report this post
Thanks. It worked.
User avatar
Senior Boarder

GK User
Fri Mar 27, 2015 11:23 am
Reply with quote
Report this post
Using for <p> is much safer than using for whole body.
You can also use for typical lists items:
Code: Select all
#gkMainbody li { text-align:justify;  }
User avatar
Platinum Boarder


cron