Padding for an HTMLView control

I have an HTMLView control and I’d like to give it padding around the edges. in the styles property I entered:

paddingBottom:10px; paddingTop:10px; paddingLeft:10px; paddingRIght:10px;

But nothing. What did I do wrong? Thanks, Mark

1 Like

Try padding-top vs paddingTop

Thanks! That worked. The page describing styles in the Language Reference for AppStudio may need updating:

Hey there,

The properties listed apply to the control directly (NSB syntax):

myHTMLView.paddingTop = “10px”;

Which is the same as (Javascript syntax):

myHTMLView.style.paddingTop = “10px”;

And also (CSS syntax):

myHTMLView.style = “padding-top: 10px”;

Best regards
Ricardo Carraretto

1 Like

Very helpful clarification, thanks!