when i m writing a long sentence in label without line break then it does wrap automatically. i m putting that label in tag. how can i wrap that long sentence.
You can insert line breaks in HTML with the <br> tag, which is equivalent to a carriage return on a keyboard.
You can wrap your asp label in a pre tag, and it will display with whatever line breaks are set from the code behind. Save this answer. Show activity on this post. You can also use <br/> where you want to break the text.
The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems.
Meaning of line break in Englishthe point where a line of text ends and a new line starts: All line breaks and paragraphs will be generated automatically. It wasn't the end of the paragraph, only a line break.
Unclear, but you can force a line break by adding a <br />
in it.
<label>Some long long long long long long<br /> long long long label</label>
create style sheet like this "
.label { word-wrap: break-word }
and assign to you label
check the link for more detail : http://www.css3.com/css-word-break/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With