Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS text-decoration sticky? Re: text-decoration sticky?

#106180
keithrw
Member

@Hompimpa – unfortunately, for me in Firefox on Mac or PC this does not work.

Thanks for trying everyone. I found the (unfortunate) answer finally in the spec. I was first sent this link to a stack overflow question, the accepted answer of which linked to the text-decoration spec and points out a spot I overlooked. It’s similar to @TheDoc ‘s answer, with a little bit different perspective.

More background on my issue (if you’re curious) – There is javascript that is adding a class to the table header for sorting. I was just hooking into that already-used class to add text-decoration to give the user an indication that the header can be clicked. Then they decided they wanted a few of the words to not be underlined, which is where I came across this. I’ll probably just end up doing something like this:

Stuff to be underlined Stuff to not be underlined