asp.net dynamic styling missing min-height
I am trying to build a stylle sheet dynamically (based on certain business
rules) Long story short it mostly works, except there is one css tag I
cannot set min-height. I can hit height, but not min-height. both being
valid css values
i.e
string h = "105mm";
Style dynamicClassStyle = new Style();
dynamicClassStyle.Height = new Unit(h);
Page.Header.StyleSheet.CreateStyleRule(dynamicClassStyle, null,
".make-display");
That renders a height tag alright, but what i really need is a min-height.
i would love to be able to go
dynamicClassStyle.Min-Height = new Unit(h);
in order to get this
.make-display {
min-height:90mm;
}
No comments:
Post a Comment