Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid big looking dialog title in jquery ui?

I am using jQuery UI 1.8 and have the following code:

var newDiv = $(document.createElement('div')); 
$(newDiv).html('hello there');
$(newDiv).attr('title','Dialog Title');
$(newDiv).css('font-size','62.5%');
$(newDiv).dialog();

For some reason the Title looks really big, see this jsFiddle for an example.

If there any way to make this look more like the version in the jQuery demo?

like image 553
Shai UI Avatar asked Nov 14 '11 22:11

Shai UI


2 Answers

you can use this css rule to apply smaller font size:

.ui-dialog{font-size: 62.5%;}
like image 79
Joseph Marikle Avatar answered Nov 06 '22 21:11

Joseph Marikle


.ui-dialog-title {
    font-size:14px !important;
}

http://jsfiddle.net/WwVgn/6/

like image 3
AlienWebguy Avatar answered Nov 06 '22 20:11

AlienWebguy