michael_morris1 — 2011-05-13T16:36:39-04:00 — #1
<div> is our generic block element.
<span> is our generic inline element.
Is there a generic inline-block element?
oddz — 2011-05-13T18:26:20-04:00 — #2
Using elements for their default display properties – you know better.
ralphm — 2011-05-13T21:13:08-04:00 — #3
No, I'm pretty sure there isn't. inline-block isn't even supported in quite a few older browsers, such as IE7 and under, FF2 etc.
It's easy enough to set at element's display to inline-block via CSS, of course.
paulob — 2011-05-14T05:00:26-04:00 — #4
No there's not a generic inline-block element although most replaced elements (such as images and inputs) behave like inline-block and can have dimensions applied.
xhtmlcoder — 2011-05-14T09:01:11-04:00 — #5
Generic is the give-away word and the answer is NO.
michael_morris1 — 2011-05-25T14:15:53-04:00 — #6
I do, but I'm thinking semantically - to make the sheet easier to read.
I'm currently using class "cell" for inline-block behavior. So a generic inline block div is
Wouldn't it be easier to read if the element itself called this out.. maybe...
To be honest, this is more usable and pertinent than the section and aside tags they are kicking around.
Because, and let's be clear here, creating a class for a single css behavior is almost no better than using inline css.