How do I change the background color of the title bar of a jQuery dialog?
I have looked at the themeroller but it does not seem to work for me.
Thanks
How do I change the background color of the title bar of a jQuery dialog?
I have looked at the themeroller but it does not seem to work for me.
Thanks
Use the
dialogClass
property. You can apply to whatever css in jquery dialog. Below we are formatting header and content blocks.You can change it by modifying the ui-dialog-titlebar CSS class, but I highly recommend you to use the ThemeRoller tool.
See also:
There are classes associated with each element in the dialog.
Use Firebug to inspect the elements and use CSS to style them. For example, the title bar has the class "ui-dialog-titlebar".
(this assumes that you are using the jQuery UI Dialog)
Sometimes you can't edit the css file. So you can try this:
I do this way (adding "ui-state-error" style for header):
The previous example works well but with only the red color of the error theme.
Here a simple solution with just changing the header image in the css:
css:
javascript:
Notice that contrary to the previous example, I removed the:
instead of just adding the class on the:
Must note that this example works with the dialog header without its link.