Hallo gurus,
I did a rebuild of a page, and decided I’d like a special bullet, one who was not an image… so I thought I’d be all sneaky and clever and use :before. But it’s become my doom. Before switching to yet another image bullet (ug) maybe someone knows another way around this?
I have a menu, and in place of bullets I have this:
#menu {
margin: 1em 0;
}
#menu li {
margin-bottom: .3em;
padding-left: 1em;
font-size: 1em;
}
#menu li:before {
content: "\\00bb" " "; /*raquo*/
color: #d1b248;
font: .8em georgia, serif;
}
* html #menu li {display: block; width: 99%;}
To get me the >> right angled quote character. I should prolly also test this in JAWS… it’s possible that I’m still really adding content in which case, a decorative bullet shouldn’t be content. But I’ve seen this technique done in forms before for a decorative “hey look here” image for error messages… so, not sure about that.
As I understand it, CSS “content” requires special characters to be written in hex or in a code point??? And if I look here on Wikipedia I see the Unicode code point U+00BB. So I wrote it as you see above, and this is how I’ve seen it in the form I saw as well, since I can’t actually write it in hex with the x… Maybe there’s a way to do it that I don’t know, to actually make it just hex?
And this validates HTML4 no problem. But I wanted to check the page through the W3 semantic extractor for teh Lawlz. Apparently it uses this XML parser, Xerxes, which I think is puking on that character (I’m not sure, but after some Googling other people with the problem with this parser were also using unicode code points instead of decimal character entities… so that’s why I think my >> is the issue).
Here is the error:
Using org.apache.xerces.parsers.SAXParser
Exception net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the comment.
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the comment.
I don’t have THAT character anywhere I can tell 0x1d, but it seem to stand for any “control character” which, apparently, is everyone in the range of 0000 to 000something… this includes x00bb : ( I’m definitely not using it as a control character.
So, before giving up and switching to an image (Yet Another GET Request is I guess my only reason for not doing the image…), is there some other equivalent hex code for this character? It has a very low ascii number.
» (187)
Or, better yet, a page that can tell me valid hex equivalents of the decimals? I once found, long ago, a few unicode sites who wanted me to type the character in and then it could give me some other versions… but usually I can’t type these characters in, lawlz, because they’re not in my keyboard. I’ve always used decimals written out to make characters… even for the Euro symbol (there’s a key on my keyboard, but it doesn’t seem to do anything).
Any Unicode gurus out there?
Thanks,
poes