Posted By

smoothdzion on 11/04/09


css textmate inline-block

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Inline Block

 / Published in: CSS

An alternative to floating elements and having to clear them. It's ready to work with all browsers including IE. All elements that use this styling need to be coded inline in the HTML. If you don't you will end up with extra spaces.

  1. div/* Element */{
  2. display:inline-block;
  3. *display:inline;
  4. zoom:1;
  5. _height:1%;
  6. vertical-align:top;
  7. }

Report this snippet  

You need to login to post a comment.