Friday, June 17, 2016

expressions in CSS

.this below could be .body too in order implementations.

@media (max-height: 200px) {
   .PerRoleRepeaterDiv
   {
      overflow-y:hidden;
      overflow-x:hidden;
      max-height:200px;
      height:expression(this.scrollHeight>199?"200px":"auto");
   }
}
@media (min-height: 201px) {
   .PerRoleRepeaterDiv
   {
      overflow-y:scroll;
      overflow-x:hidden;
      max-height:200px;
      height:expression(this.scrollHeight>199?"200px":"auto");
   }
}

No comments:

Post a Comment