Hacker News new | ask | show | jobs
by jentulman 4693 days ago
LoVe HAte when ordering psudeo classes in css for anchors*

  ":link, :visited, :hover, :active"
*may not be particularly weird or novel
2 comments

Also CSS related, when doing margin/padding I use "TRouBLe" to remember:

    margin: (T R B L)
My one is visualising a clock face, 12, 3, 6, 9
Thats a nice example showing that mnemonics need not be logical to have value (if you asked people to order the numbers on a clock face, I think the vast majority would have them as 3, 6, 9, 12)
Do you have one for border-radius? Because I still can't remember the order of those..
That's the one I use as well.

Although I can never remember the 3 parameter verision

margin: (T R&L B)

I heard "Las Vegas Hells Angels" and it's stuck with me.
That's far more rock'n'roll, I might make the switch. Now I just need to remember...

'Naughty Llama Holidaymakers Book Lovely Vacation Homes from AirBNB'

= N.L.H.B.L.V.H.A = 'not Love Hate but Las Vegas Hells Angels'.