Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  52] [ 7]  / answers: 1 / hits: 83259  / 13 Years ago, wed, february 22, 2012, 12:00:00

I am having tough time figure out how to change background color of jQuery UI Dialog.



I've seen many reference how to change/remove title bar but not entire background including those curvy corner.



Here is my try:



http://jsfiddle.net/dEvKb/11/



The problem is .ui-widget-content only applies to square area within the dialog but not including curvy corner.



I found a class .ui-corner-all class hoping it will color the entire background but only half of the dialog is colored. (you can see this in the jsfiddle)



Has anyone done this before?


More From » jquery

 Answers
16

you can use this way



http://jsfiddle.net/dEvKb/15/



You should set to all class background with use !important.



.ui-dialog,.ui-widget, .ui-widget-content, .ui-corner-all, .foo, .ui-draggable, .ui-resizable {background:yellow !important}​


[#87306] Monday, February 20, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daja

Total Points: 407
Total Questions: 103
Total Answers: 103

Location: Ghana
Member since Sun, Mar 27, 2022
2 Years ago
daja questions
Tue, Dec 21, 21, 00:00, 2 Years ago
Thu, Apr 23, 20, 00:00, 4 Years ago
Fri, Sep 6, 19, 00:00, 5 Years ago
Tue, Jul 23, 19, 00:00, 5 Years ago
;