1

I'm having some issues with the JQuery UI progress bar, I can't seem to resize it. I tried adding a height value in my css for the progressbar class but It will only change in width, not height.

Thanks in advance for any answer!

user1310856
  • 335
  • 1
  • 3
  • 7

1 Answers1

3

Just use .height() like this:

$('#progressbar').height(100);

Demo: http://jsfiddle.net/zaHGG/

stewe
  • 41,820
  • 13
  • 79
  • 75
  • Wow, thanks! Also if I might ask, is there an easy way to change the color of the bar? – user1310856 Apr 08 '12 at 20:23
  • That is not that easy, because it uses images for the progress bar, however you can set the background color like this `$("#progressbar").css({ 'background': 'green' });`, also have a look at: http://stackoverflow.com/q/1476573/511300 – stewe Apr 08 '12 at 20:33