HighDots Forums  

Title attribute

alt.html alt.html


Discuss Title attribute in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fabri
 
Posts: n/a

Default Title attribute - 07-04-2005 , 07:57 AM






I guess if it is possible to write a multiline title attribute natively
with HTML + CSS.

GMail does it and I don't know how.

<div title="first line[\n doesn't work]second line">My Div</div>

Any help appreciated.

Regards.

--
Fabri
("Sono pių di 30 punti...ma č come se fossere 8 o 9....")

Reply With Quote
  #2  
Old   
Arne
 
Posts: n/a

Default Re: Title attribute - 07-04-2005 , 08:11 AM






Once upon a time *Fabri* wrote:

Quote:
I guess if it is possible to write a multiline title attribute natively
with HTML + CSS.

GMail does it and I don't know how.

div title="first line[\n doesn't work]second line">My Div</div

Any help appreciated.

Regards.

I belive you must use Javascript for that.

--
/Arne

Top posters will be ignored. Quote the part you
are replying to, no more and no less! And don't
quote signatures, thank you.


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Title attribute - 07-04-2005 , 12:22 PM



Fabri <no (AT) sp (DOT) am> wrote:

Quote:
I guess if it is possible to write a multiline title attribute
natively with HTML + CSS.
Of course. In HTML, a line break is permitted inside an attribute
value. CSS has nothing to do with this.

What you probably mean, though, is whether you can make browsers
_display_ an attribute value in two (or more) lines with a line break
in a particular position. The answer is that by the specifications you
cannot, though some browsers incorrectly treat a line break as in
title="first line
second line"
as requesting a line break in output, not as equivalent to a space, as
the specifications say.

Quote:
Any help appreciated.
When in a dead end, backtrack. What was the reason for your wish to
display a title attribute in two lines? It probably indicates a wrong
idea of the attribute. It is an "advisory title" - basically, something
that the user might or might not hear or see and that might sometimes
help her, but it should not contain anything that users _must_ know.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.