Friday, June 26, 2015

Change text alignment of glossary entries from center to left

You have set up a glossary with auto-linking. You include the title of a glossary entry somewhere in your course, and ta-da, there's an automatic link to the entry. One problem though. When you click the link, the text of the glossary entry is center-aligned in the pop-up window. Not a bad thing if your entry is just a couple of lines long, but what if it's a fairly lengthy entry? It can be quite hard to read.

To left-align the glossary tip that pops up, add this line to the CSS section in the Clean theme settings or any other theme that lets you customise CSS easily.

.moodle-dialogue-confirm .confirmation-dialogue {text-align:left;}

No comments:

Post a Comment