Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. $("#ui-1").css({'position':'absolute','left':'27.0px','top':'51.0px','width':'120.0px','height':'30.0px',});
  2. $("#ui-1 .ui-btn-text").css({'font-family':'"Calibri","Arial","Sans Serif"','font-size':'0.75em','color':'black','text-align':'left','wordwrap':'normal','text-shadow':'1px 1px 1px #FFFFFF'});
  3.  
  4. // For all buttons use something like this
  5. $('.ui-btn').css('width','50%');
  6.  
  7. // For individual buttons use something like this
  8. $('#theButton1').parent().css('width', '75%');
  9.  
  10. // Or this for HREF data-role buttons
  11. $('#hrefButton4').css('width', '45%');
  12.  
  13. // this changes the height for all buttons
  14. $('.ui-btn-text').css('font-size','50px');
  15.  
  16. // This changes the height for a single element
  17. $('#hrefButton3').children().children().css('font-size','30px');
  18.  
  19. <div data-role="page" id="home">
  20. <div data-role="content">
  21. <input type="button" id="theButton1" value="Press Me 1" />
  22. <input type="button" id="theButton2" value="Press Me 2" />
  23. <input type="button" id="theButton3" value="Press Me 3" />
  24. <input type="button" id="theButton4" value="Press Me 4" />
  25. <br />
  26. <a href="#" data-role="button" id="hrefButton1">HREF Me 1</a>
  27. <a href="#" data-role="button" id="hrefButton2">HREF Me 2</a>
  28. <a href="#" data-role="button" id="hrefButton3">HREF Me 3</a>
  29. <a href="#" data-role="button" id="hrefButton4">HREF Me 4</a>
  30. </div>
  31. </div>
  32.  
  33. display: inline-block;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement