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?
you can use this css rule to apply smaller font size:
.ui-dialog{font-size: 62.5%;}
.ui-dialog-title {
font-size:14px !important;
}
http://jsfiddle.net/WwVgn/6/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With