When using a style sheet to style a normal text field, the margin and padding properties don’t seem to work in the way you would expect in a html document.
In Servoy the margin property in the style sheet seems to do what the padding property should do in html/css and the padding property in servoy doesnt do much of anything.
Is this a bug? I find this annoying and counter intuitive.
This happens in both web and smart clients.
Hi Paul,
I am not sure if padding should do anything in Servoy. Servoy stylesheets don’t support all CSS classes that are used on the web.
Check the online help (press F1) on what styles are supported for what elements.
Hope this helps.
Yep, you are right, Servoy doesnt support padding, so margin takes in place when dealing with fields.
And the definitions for the margin (T L B R instead of T R B L) are the wrong way round. Bonkers!
The order (T L B R) comes from Java… That’s just the way it is there.