Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Less variable not working Reply To: [Solved] Less variable not working

#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;
}