user3818229 user3818229 - 1 year ago 547
HTML Question

How to set up the max-width of $mdDialog?

I'm a new one in css and can not to set up the max-width of my confirmation dialog properly. Here my code of calling dialog:

content: longText,
ok: 'OK',
cancel: 'CANCEL'
clickOutsideToClose: true,

The problem is that my
doesn't carry and my dialog is very stretched horizontally.
I tried to add
locally and determine
like this:

.md-dialog {
max-width: 300px;

But there is no changes.
Could some one help me?

Answer Source

To achieve what you want you should use this way:

.md-dialog-content {
  max-width: 300px;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download