I am trying to remove the property min-width from the class ui-widget-content and trying to modify the property from width: auto !important; to width: 250px; for class ui-dialog.
Please note that these 2 changes should only be applied to the parent of childDiv and the implementation of the classes ui-widget-content and ui-dialog should be untouched elsewhere.
Any suggestions would be really appreciated.
<div class="ui-widget-content ui-dialog">
<div id="childDiv">
...
</div>
...
</div>
.ui-widget-content {
min-width: 360px;
...
}
.ui-dialog {
width: auto !important;
...
}
What I tried(With no success):-
For removal:
$("#childDiv").parent('.ui-widget-content').removeAttr("min-width");
For modification:
$("#childDiv").parent('.ui-dialog').css({"width: 250px"});
removeAttr()won't affect that property. Set it to0instead like in your second example.