Jquery Dialog, Adding a new line of styled text
Asked Answered
C

1

5

I am trying to create a customer support dialog. I want the dialog to have two lines of text, and a title. The first line will be an error message, and the second will be a bold customer service number. This may be hard to picture so I added a dialog I made in paint to help out: enter image description here

I tried making a new line statement (string Error = "You have an error... number \n Customer Support...) to see if I could separate the text but that did not work. Any suggestions?

Caltrop answered 19/4, 2011 at 19:17 Comment(0)
E
7

Why \n? You should use <br />.

"You have an error... number <br /> Customer Support: ..."
Emlin answered 19/4, 2011 at 19:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.