This’ll allow you to specify an opacity value (between 0 and 1) and have LESS automatically add in the necessary IE filters, converting it to an IE opacity value (between 0 and 100).
LESS CSS class for cross browser opacity
6 Replies
This’ll allow you to specify an opacity value (between 0 and 1) and have LESS automatically add in the necessary IE filters, converting it to an IE opacity value (between 0 and 100).
The fantastic clearfix, as a LESS CSS class:
.clearfix { zoom: 1; &:before, &:after { content: ""; display: table; } &:after { clear: both; } }
Use in your code like so:
ul#gallery { .clearfix; li { float: left; } }
Easy.