css - Strange jump of list-item height when hidden nested span is displayed on hover in Chrome -


i have list of links using nested span elements rollover information on hover.

see page: http://kenbrookyouth.com/summercamp11/

so in firefox in list (see list of camps in "summer camp" section of page, below 2 descriptions; there 2 lists - 1 of left , right) looks fine, including when hover on list items (camp names). doing produces desired effect of hidden nested spans appearing age info each camp.

however in chrome , safari list items have strange jump-glitch on hover, such appears hidden nested span being displayed block, not floated should.

any tips on one?

the problem can solved wrapping text in links in <span> tags (for instance "adventurers" in first one). reason (don't know exact reason), floats behave best when other elements around them have widths or floating or both. text becomes unpredictable when it's not surrounded tag, try keep text in spans (or h1, h2 or other text-appropriate tag).

another way fix add width <a> tag, you'd have give different widths each link, use span tags.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -