tags:

views:

50

answers:

2

Trying to display the text of the label in three different lines:

First Line

Second Line

Third Line

But is showing up in single line "First Line Second Line Third Line"

Can the label display multiple lines?

A: 

Are you talking about form labels in HTML?

You can add line breaks after each part, or you can wrap each "line" as a span. I think anything else may be invalid.

example:

 <label for="some_input">First Line<br />Second Line<br />Third Line<br /></label>
 <input id="some_input" type="checkbox" name="input1" />

Or:

 <label for="some_input"><span>First Line<\span><span>Second Line<\span><span>Third Line<\span></label>
 <input id="some_input" type="checkbox" name="input1" />

then add the CSS:

 label span {
     display: block;
     }
Anthony
A: 
vamsivanka