Forum Moderators: open

Message Too Old, No Replies

title attribute shows as preformatted

(I never noticed this before)

         

Purple Martin

6:39 am on Jan 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wow, I can't believe I never noticed this before. IE will treat text in an element's title attribute as preformatted! It shows carriage returns and spaces in the tooltip! Try adding the following title attribute ( with returns as shown) to any element on a web page and then hover your mouse over it:

title="This title  is 
shown on
four
lines."

Unfortunately Firefox only shows the spaces properly, the carriage returns get messed up as odd blocks.

SpaceFrog

8:10 am on Jan 19, 2005 (gmt 0)

10+ Year Member



another way of doing it is by using & # 10 ; (with non spaces)... But it stille won't work with Firefox :-((