Skip to content

Add px in css for frames

philcal edited this page Jan 16, 2013 · 1 revision

In the code generated for frame widgets CSS offsets are used to position sprites.

At till now no coordinates were specified because the default was px.

style="background-position: 15 0"

With different DOCTYPEs it may be necessary to specifically define the units. This can now be done by specifying this configuration variable in wbd.conf:

cssUnit=px

which results in the following code being generated:

style="background-position: 15px 0px"

--

Clone this wiki locally