max-height on dynamic label

I'm trying to assign the max-height style to a label which is dynamically created, with a vertical scroll bar.
Although when I run the page there is no maximum height. LabelComment.Attributes.Add("style", "max-height:50px;overflow-y:scroll;") I can get it to set just the height attribute instead and not max-height I want to assign the max height so the rows that the label isin are not too big, I don't want tojust set the height attribute since this would leave a large gap if there is no content. Anyone have any ideas I'm running it in IE6 if that makes any difference
Posted On: Wednesday 7th of November 2012 10:44:47 AM Total Views:  316
View Complete with Replies