Home › Forums › DITA and XMetaL Discussion › DITA Editor style – add a background image? › Reply To: DITA Editor style – add a background image?
Reply to: DITA Editor style – add a background image?
June 28, 2013 at 7:38 pmXMetaL doesn't support the “background” or “background-image” properties.
You can do an image with the :before pseudo-selector:
[class~=”topic/note”]:before
{
content: url('note.gif');
}
[class~=”topic/note”][type~=”tip”]:before
{
content: url('tip.gif');
}
But I can't see an obvious way to get BOTH the image and a text label such as “Note” or “Tip”. Simply putting both in the content: property didn't do it. Maybe Derek knows …