Home Forums DITA and XMetaL Discussion DITA Editor style – add a background image? Reply To: DITA Editor style – add a background image?

mag3737

Reply to: DITA Editor style – add a background image?

XMetaL 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 …

Reply

Products
Downloads
Support