Solved Templates

Themis template body automatically left aligned

Asked by Dinuka 4 years ago Last activity 4 years ago

In themis template body automatically left aligned without doing anything. how can i fixed this?
https://ict.kln.ac.lk

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
4 years ago · edited

center =/= justify

But I hope you know the basics of CSS, right.


But I still don't know what areas you want to center?

Any example /screenshot/ with URL where to look for it.

For example if you want to center all texts used in addons

.sppb-addon.sppb-addon-text-block, .sppb-addon-content 
{ text-align: center; }

7 more replies

Paul Frankowski Senior Staff
4 years ago · edited

Hi Dinuka,

text-align: left;

LTR (Left-to-right) text direction is in general, popular value. This is not a bug, it's how it was set in Bootstrap 5 framework (we used it in Helix).

Yes, you can force/override different setting, example below, but it may not be good is all cases.

body { text-align: justify; }

Dinuka Asked this

Mehtaz Afsana Borsha - yes it is. In all pages body aligned to left.

So how i used this body { text-align: justify; }. I didnt get that answer.

Dinuka Asked this

I know how to use custom CSS. But body { text-align: justify; } is not working.

Paul Frankowski Senior Staff
4 years ago · edited

This is the only main rule that it was.

So I will ask different way, where exactly you want to change from text-align: LEFT to text-align: justify ?


I know how to use custom CSS.

If yes, Why I don't see my code inside your Custom CSS area. I don't talk about custom.css file. Hmm?

Dinuka Asked this

I put this into custom css and it was not work. so i removed. can you see my all pages contents aligh to left. i need to move them center. i aready share credentials. Can you just try it?

Log in to reply.