Last post Feb 27, 2012 03:39 PM by Ruchira
Feb 27, 2012 11:59 AM|ogsim07|LINK
Feb 27, 2012 12:10 PM|Ruchira|LINK
The simplest solution will be to use divs instead of spans. Why are you using span in this situation? Since spans are inline elements, it takes width according to the text inside it, so it's width is floating with the content. But div on the other hand,
has a fixed width so it's easier to align text with divs.
If you need to get the inline behaviour while having the text aligned, you can use a div and set the display style to display:inline-block.
<div style="display:inline-block">25 lines here</div>
Hope it helps you...
Please 'Mark as Answer' if this post helps you.
Feb 27, 2012 12:14 PM|MetalAsp.Net|LINK
Feb 27, 2012 12:31 PM|ogsim07|LINK
Feb 27, 2012 03:39 PM|Ruchira|LINK
i cannot use span tag u mean to say?
I'm afraid that I don't see any other way to achieve the text-alignment. :(
As far as I know, alignments won't work for inline elements. Instead you can use divs with display set to