Home Forums General XMetaL Discussion custom arrow in xmetal Reply To: custom arrow in xmetal


Reply to: custom arrow in xmetal

First be sure this is not a font issue — the font you are using to display this element must include a glyph for the Unicode character #9658.

Then, CSS uses different escaping for Unicode characters than XML does. You need the hexadecimal value, and it looks like this:

[code]content: “25ba”;  /* Unicode char ► == ► */[/code]

Note that the CSS spec says that you need a six-digit hexadecimal number, but in my testing with XMetaL 7 just now, it works with a 4-hex-digit number as shown above.

Finally, the “content” property in CSS is meant to be used with “:before” selectors. I think the code you are looking for is probably more like this:

.arrow :before
content: “25ba”;  /* Unicode char ► */