I create a div and then open it in a dialog. I've tried styling this div to achieve that the content would expand to 100% in both directions.
What have I tried so far: Setting the div style
#content {
width:auto !important;
height:auto !important;
background-color:red !important;
display:block !important;
}
and setting the default div style
$(div).dialog({ dialogClass: 'someStyle' });
.someStyle .ui-dialog-content
{
height:auto !important;
display:block !important;
}
Nothing seems to work! I overrides the width propertie but cannot override the height propertie. How to hack this?
I want to achieve something like this: http://jsfiddle.net/S3FQv/