EasyUI Forum
December 20, 2025, 05:14:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Styling number spinner and datebox with CSS on: January 30, 2014, 11:21:13 AM
I have a web site where I am using jQuery EasyUI number spinners and date boxes.

In order to support Smart Phones, Tablets and Laptops, I am using CSS Media Queries to style based on the screen size.

When I view the page on a tablet (i.e. my iPad) I need to adjust the height of the controls. If I add a 'style="height:20px;width:50px"' to the HTML markup it seems to work.

However, I need to define the width and height in the style sheet and not the mark up. And allow a larger font size. I can't get this to work.

Example: The following works :-

<input id="numberspinner" name="pettargetweight" class="easyui-numberspinner" style="height:20px:width:50px;"

If I remove the 'style=' tag and define the following in the stylesheet, it doesn't work.

#numberspinner {
        height:20px;
   width:50px;
}

Does anyone have experience or can help me find how I can adjust these sizes for display on the various devices?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!