Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify color of jQuery UI dialog?

 
Sam Doder
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I am using this
jquery dialog

What I am trying to set is the title bar to a different color then the light grey.... I don't know how to get access to it???

I can set the white text background by doing this
$("#dialog").css("background-color","color goes here");

But I don't know how to set the title bar to a different color?

Any help would be great I have this as my external script files they are not local so I cann't modify them.


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Sam, please be sure to take the time to compose descriptive subjects for your posts. I've adjusted this one for you.

jQuery UI widgets are controlled by their theme. You can either tweak the CSS on a page by page basis, or you can create your own theme from scrathc. For the latter, visit the Theme Roller web app.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And... why in the world are you importing multiple versions of jQuery in the same page?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The background is controlled by the .ui-widget-header class and is generally an image, not simply a color.
 
Sam Doder
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok , basically the only way I can modify the title look is to modify the css file,...etc is their somewhere I can download the equivalent of



If I cut and paste these files from my internet explorer the formating of it is not easy to read/modify???

Thanks



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ask again:
Bear Bibeault wrote:And... why in the world are you importing multiple versions of jQuery in the same page?


What you have there is nuts!

And, no, you don't need to modify the CSS file if you don;t want to. You can just override the CSS rules if you prefer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic