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

rubo77
  • 19,527
  • 31
  • 134
  • 226

1 Answers1

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.

Fabrizio Calderan
  • 120,726
  • 26
  • 164
  • 177
  • 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? – rubo77 Oct 15 '13 at 07:56
  • I solved it with you help like this: https://gist.github.com/rubo77/7003745 also see https://github.com/tcatm/ffmap-d3/pull/35 – rubo77 Oct 16 '13 at 07:06