Legs for beds