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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #177656
    Chasew
    Participant

    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

    #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;
    }
    #177667
    Chasew
    Participant

    Ah hah! Thanks

    That actually cleared up a few of my questions

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.