css - A span can be a div, but a div can't be a span -



css - A span can be a div, but a div can't be a span -

i'm wondering if (my title) ever incorrect, other html validation. i've had start supporting ie7 1 time again (i've been lucky plenty not have past 3 years or so) , fact div's can't inline-block has gotten me 10 times in past month due fact create div default , go , stylize elements. i'm considering making everything span if later go , create inline-block i'm not trying figure out why it's not working in ie7.

so question -- there ever case, in browser (ie7+, ff, webkit, opera), knows of span can not deed div? i'm not concerned html not validating due having block elements within inline ones.

i'm not going straight reply question, think worth saying.

i've had start supporting ie7 1 time again (i've been lucky plenty not have past 3 years or so) , fact div's can't inline-block has gotten me 10 times in past month

you can utilize display: inline-block in ie7 block-level elements such divs, with:

selector { display: inline-block; *display: inline; zoom: 1 }

if don't want utilize invalid safe css hack (*property), can utilize conditional comments.

css

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -