<div> is our generic block element.
<span> is our generic inline element.
Is there a generic inline-block element?
| SitePoint Sponsor |

<div> is our generic block element.
<span> is our generic inline element.
Is there a generic inline-block element?
Using elements for their default display properties – you know better.
The only code I hate more than my own is everyone else's.




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.
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge


Generic is the give-away word and the answer is NO.
};-) http://www.xhtmlcoder.com/
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

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
<div class="cell">
Wouldn't it be easier to read if the element itself called this out.. maybe...
<idiv>
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.
Bookmarks