negative value of offsetTop

Does dhtmlxform offsetTop of checkbox support negative value?

I intend to move up a nested checkbox by using a negative offsetTop value.

Thanks in advance.

Try to set position:absolute and place it manually.

Hi Darya,

Thanks for your reply. I’m using position:absolute. But this method will fix all items’ position. If I need to hide a control according other control’s value, it will leave an empty space which does not preset a good GUI.

Is there any better work around?

Thanks very much.

Hi

form’s items have some default margins/paddigns, you can find them in css (and edit if you need)
offsetTop/Left allows you to make this margins larger, using pos:abs will allows you to configure each element. no other direct solutions.