Hello,
So there must be something very fundamental I'm not getting here.
Let's say I have two different modal dialogs on the same page.
I know I can add styles to manipulate the defaults like:
- .ui-dialog .ui-dialog-buttonpane {
- text-align: center;
- }
-
- .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
- float: none!important;
- }
-
- .ui-dialog {
- left: 50% !important;
- top: 30% !important;
- margin-left: -400px !important;
- margin-top: -190px !important;
- }
Which is great... the one dialog that I'm styling is using these and working well.
However, now I introduce modal dialog #2 to that same page and the styling I want to use for this other dialog is entirely different from the first. The above example are in the global space so they will impact both modal widgets, I can't figure out how I would associated a specific set of styles to a specific dialog. I was expecting to find some process to inject a class or id into the rendered object to allow me to target the styles accordingly, such as:
- div.my-first-dlg.ui-dialog {
- left: 50% !important;
- top: 30% !important;
- margin-left: -400px !important;
- margin-top: -190px !important;
- }
but that doesn't work... I can't wrap the modal.
There must be some way to do this.
This sounds like a very brain dead question, but I've run out of ideas. I've read the documentation on this, that's how I was able to style out the first dialog. Now I'm here.
Thanks for any help on this.