6

I would like to add arrows to my sortable table on this page

What I tried is adding this code to the css:

table th.headerSortUp:after { content: " ↑"; } table th.headerSortDown:after { content: " ↓"; } 

But that will not display the arrows "↑" and "↓" but the html-entities instead: "↑" and "↓"

or even better would be the up- and downward arrow I found here: http://graphemica.com/search?q=ARROW+TO+BAR

0

1 Answer 1

10

try using theirs unicode positions instead

table th.headerSortUp:after { content: " \2191"; } table th.headerSortDown:after { content: " \2193"; } table th:after { color: #123456; } 

See http://www.blooberry.com/indexdot/html/tagpages/entities/arrow.htm for other arrow symbols.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks, I used \2912 and \2913 for ⤒ and ⤓ now. How can I give the arrows another color than the rest of the content of the th?
I solved it with you help like this: gist.github.com/rubo77/7003745 also see github.com/tcatm/ffmap-d3/pull/35

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.