« UI Controls of the Week: Quickly fill up a UI mockup with photos, placeholder text, and ads | Main | UI Control of the Week: Repeater control generates multiple copies of UI elements »

February 20, 2012


Tommy Carlier

There's an easier way to create a label for a checkbox, that does not have the gap or require an ID on the checkbox: embedding the checkbox inside the label:

{label}{input name=remember type=checkbox} Keep me signed in{/label}

Tommy Carlier

Ignore my previous comment: I didn't read your post all the way to the end. Stupid me. :-)

Jan Miksovsky

Tommy: No worries. It was kind of surprising to me to come across the implicit form of a label (where it contains the input control), since most explanations of label elements that I've seen use the explicit variant that takes a "for" attribute. The implicit one is much nicer!

The comments to this entry are closed.