The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Less variable not working
Trying to explore the potential of LESS but I can’t even seem to get off the ground!
Probably something stupid simple, but can someone please point it out for me?
Much obliged!
http://codepen.io/chaseBank/pen/BCyzm
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; }
Ah hah! Thanks
That actually cleared up a few of my questions