lapots
lapots

Reputation: 13415

change font size of button on jquery dialog

I've got some simple dialog

$("#modal").dialog({
  autoOpen: false,
  height: 350,
  width: 600,
  modal: true,
  buttons: {
    Cancel: function() {
      $(this).dialog("close");
    }
  }
});

How to change the size of text in a button - Cancel?

Upvotes: 0

Views: 461

Answers (2)

Amit
Amit

Reputation: 15387

Try this

#modal{font-size: 20px; } /*where #model is button id*/

Upvotes: 0

mehmetakifalp
mehmetakifalp

Reputation: 455

Edit your css like this;

 #dialog .ui-button-text {
     font-size: 15px; /* Or whatever smaller value works for you. */
 }

Upvotes: 1

Related Questions