I have a span with several other spans inside it, and I want to toggle the sub-spans between display:block
and display:inline
. The spans start off with display:inline-block
, then are switched to display:block
. This works fine. The problem is when toggling back in Webkit (it works fine in Firefox): the spans are rendered with extra line breaks in between them.
Can I make this render correctly without putting <br/>
tags between the spans?
demo here: http://jsbin.com/omalu3/4/edit