Amit Dhamu

Writes Code

Mixins in LESS

.BorderRadius(@radius) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;
}

.box {
    .BorderRadius(4px);
}
```<br/>

.Place(@position, @top, @left, @bottom, @right) { position: @position; top: @top; left: @left; bottom: @bottom; right: @right;
}

#container { .Place(absolute, 50, 50, 50, 50); } `


less / css preprocessors / border radius / css

← Variables in LESS Cacheable Tweets →