Q:

Getting a variable inside a external css file

i have a case in which the two values of the following should be changing according to the data in database.
In a external css file i have this.
#wow-container1 { 
    zoom: 1; 
    position: relative;
    width: 100%;
    max-width:960px;
    max-height:360px;
    margin:0px auto 0px;
    z-index:90;
    border:2px solid #FFFFFF;
    text-align:left; 
    font-size: 10px;
}

my requirement is i need to change the max-height:max-width: when the height and width stored in database is changed.Is there any possible solution.?

A:

Try this using jQuery .css()
var width = "value from DB";
var height = "value from DB";
$('#wow-container1').css({ 'max-width' : width, 'max-height' : height });

