Pages: 1
Print
Author Topic: Incidental Graphics Display  (Read 237 times)
scotth
Member

Posts: 35


« on: September 14, 2011, 06:03:16 AM »

Using XMetaL 6.0, is there anyway to display small icons or graphics that are not associated with an image tag in the XML? For example, lets say that I want to display a small icon next to a warning, caution, or not. My first thought was to make use of css background images, but I notice in the help file that the property is not supported by XMetaL.

Thanks,

Scott
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: September 14, 2011, 10:53:08 AM »

The documentation is outdated in this regard. You can use the following construction in your CSS to do what you want:

selector_name:before {
   content:url(C:\somepath\somefile.gif);
}


All of the image formats that XMetaL Author supports "natively" should be usable here as far as I know.
With this usage the file must be on your local machine (you cannot use an http address for example, as you can with elements that have their CTM settings configured to render them as images).
Logged
Pages: 1
Print
Jump to: