Double underline via CSS not working

Double underline via CSS not working

by avo user -
Number of replies: 6

Hi,

in the recent version of moodle 3.8.x I cannot inject CSS code in order to have double underline. Previously with moodle 2.9.x it worked well.

I verified that the CSS code is removed when I press save whereas if I insert an HTML code it works well. Any suggestion?

<style type="text/css">
.doubleUnderline {
text-decoration:underline;
border-bottom: 1px solid #000;}
</style>

<span class="doubleUnderline">Test</span>


Average of ratings: -
In reply to avo user

Re: Double underline via CSS not working

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
Where are adding that css?
Average of ratings: Useful (1)
In reply to Jon Bolton

Re: Double underline via CSS not working

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers
If you're attempting to put your information directly in the html editor, all you'd need is the following:
<span style="text-decoration-line: underline; text-decoration-style: double;">Test</span>
Average of ratings: Useful (1)
In reply to John Provasnik

Re: Double underline via CSS not working

by avo user -
This solutions works well with moodle 3.9. Thank you
In reply to avo user

Double underline via CSS not working

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers
Instead of bottom border, try:

.doubleUnlerline {
text-decoration-line: underline;
text-decoration-style: double;
{