I've tried again using links with doc strings as the values of the title 
attribute, but when the text in Firefox 11.0 it does not honor the line breaks 
in my text, but reflows it.  Try it out yourself at [1]:

[1] 
http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-title-attribute.html

Is there a way that Firefox will let me specify where line breaks should go?  
If I put <pre> or <br> tags in the text of a title attribute, those just show 
up literally in the text that the browser displays in the tool tip.  I have 
line breaks in the title attribute value in my HTML, but Firefox seems to be 
ignoring those.

Safari and Chrome seem to honor the line breaks in the title attribute, but 
they make the popup windows so narrow that the lines break in the middle, in 
addition to where I put my line breaks, which is better but not great.  Is 
there a way to tell the browser to make the popup windows wider?

Andy

On Mar 24, 2012, at 6:32 PM, Cedric Greevey wrote:

> On Fri, Mar 23, 2012 at 4:43 PM, David Martin <davidhmar...@gmail.com> wrote:
>> I agree that title attribute is the way to go. You shouldn't use the alt
>> attribute for tooltips though, as this violates accessibility standards. Alt
>> should either contain a literal description of the image, or be left empty.
> 
> Be sure to tell xkcd that. (Why can't it be both?)
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to