Is the text always centered in a glossary?

Is the text always centered in a glossary?

by chris engelsma -
Number of replies: 3
Making and linking glossary entries is easy enough. But is the text in the pop-up always going to be centered? Is there anyway to left justify it?
Average of ratings: -
In reply to chris engelsma

Re: Is the text always centered in a glossary?

by Joseph Rézeau -
Core developers колдонуучунун сүрөтү Particularly helpful Moodlers колдонуучунун сүрөтү Plugin developers колдонуучунун сүрөтү Testers колдонуучунун сүрөтү Translators колдонуучунун сүрөтү

I reported this problem 5 years ago in MDL-23535 point #1:

1.- There is no reason why the text of the definition should be displayed centered. It should normally be displayed left-aligned (or, I suppose, right-aligned for RTL languages).

For what it's worth you might like to add your vote.wink

In reply to chris engelsma

Re: Is the text always centered in a glossary?

by Francis Kneebone -

Hi Murray, 

I had the same issue, and found shorter definitions look better centred anyway and longer definitions needed some alignment still.  Targeting the CSS for ALL glossary terms doesn't always work with every theme I've found but for each Glossary 'item' if you wrap your definition like this...

<div style="text-align: left";> Your Definition Here </div>


You can do it for the terms that really need it anyway.

This CSS will force it to align on pop-up.