Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 27, 2012 02:39 PM by Ruchira
Feb 27, 2012 10:59 AM|LINK
Feb 27, 2012 11:10 AM|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 11:14 AM|LINK
Feb 27, 2012 11:31 AM|LINK
Feb 27, 2012 02:39 PM|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