Home › Forums › CSS › [Solved] Less variable not working › Reply To: [Solved] Less variable not working
August 4, 2014 at 11:37 pm
#177659
Chasew
Participant
Thanks for the quick reply. I think what I was attempting is a mixin? In which case I’m still confused why it isn’t working.
Like in this example, the variable isn’t declared outside
.RoundBorders (@radius: 5px) {
border-radius: @radius;
-moz-border-radius: @radius;
-webkit-border-radius: @radius;
}