Hi Jason,
If you do want to use an image rather than an entity, you can style it to display inline with a height & width of 1em (or something else to your preference). It scales just fine.
I haven't checked this across many browsers, but it should be widely supported.
Cheers, Mike
On Monday, November 8, 2004, at 03:56 PM, Steve Winter wrote:
Jason,
I can't offer any suggestion, but I can advise that on XP SP 2, in both FireFox 0.8 and IE 6.0 ↑ and ↓ both render fine, and seem to scale okay too...
Cheers Steve
-----Original Message----- From: Jason Anderson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 8 Nov 2004 15:42:56 +1100 Subject: [WSG] Up and down arrows using HTML entities
Hi,
I'm setting up a table which will can be sorted by clicking on one of the headers, and I'd like to display the sort order (ascending or descending) by drawing a little arrow next to the column name. I thought about using an image, but of course it wouldn't scale with the text. Is there a good technique for drawing a text arrow in most browsers, which degrades nicely if it can't be displayed?
I found a page which shows some HTML entity codes, including the arrows, at http://www.htmlhelp.com/reference/html40/entities/symbols.html
I tried ↑ and ↓ and they work great in Safari 1.2.1 and Firefox 0.9.1, but the page says browser support for those entities is generally very poor. I don't have a PC nearby to test with, and I have no idea what a screen reader would do.
Am I out of luck?
Thanks,
-- Jason Anderson http://www.thenewjhp.com ******************************************************
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************