html-line

Multiline span-behaving elements

I want to display a list of complex, but fixed-size multiline elements, assuming that they will wrap the page line when line end is reached, making them appear by n in each row, when n depends on page width. Something like: Mary had Mary had Mary had a little a little a little LAMB LAMP WHISKEY Mary had a li...

jquery tooltip over dialog

I have a simple html multiline tooltip implementation: this.tooltip = function(tag) { xOffset = 10; yOffset = 20; $(tag + ".tooltip").hover(function(e){ this.t = this.title; this.title = ""; $("body").append("<p id='tooltip'>"+ this.t +"</p>"); $("#tooltip") .css("top",(e.pageY - xOffset) + "px") .css("l...