Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Button Width Setting with Javascript

Hi,

I'm using the code below to set the width of a button:

Appery("button1).css("width",buttonwidth+"px");

where buttonwidth is the result of a calculation depending upon screen size.

The problem is, it appears to be ignored, and I can't add an !important to it as it's JS.

Is there a way around this? Obviously I cant use the CSS option as the width required is a calculated figure and not a constant.

regards

Andy.

Return to “Issues”