CSS length manipulation (example)
(back)
Live demo

This example shows two positioned DIVs. One of the DIV's position is set using the unit you choose and the other is set using the equivalent quantity of pixels (px). An instance of CssLength is used for the conversion. To start the test, enter a valid CSS length string in the box, for example "2.2em". The two DIVs will be repositioned accordingly. You can then move the DIVs using the add or substract buttons.

 
 
CSS string