View Full Version : MessageBox - multiline alert text alignment
11 Aug 2010, 1:22 AM
I would like to know how to align multiline text in a MessageBox.alert()
I tried <div> or <p> but the text is never aligned.
Could you help me?
How do you want to align it? How should it look like?
11 Aug 2010, 4:04 AM
Ideally I'd like a column left to the icon and a right column for the text
I tried to had a style in the <div> with a float:right and text-align:justify
It seems to work for IE but not for Firefox...
You also need to give it a width, so its floating to the right but is also sized.
11 Aug 2010, 5:55 AM
it helps me a lot
11 Aug 2010, 6:01 AM
by default, the message box width seems to be 100px
if I fix my <div> width to 50px, there is a big margin between the icon and the text and all the text is pressed to the right
I need to find the proper width...
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.