Guest User

Untitled

a guest
Jun 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. // In IE6+7, setting display to inline-block simply has the effect of
  2. // triggering IE's internal 'hasLayout' attribute for that element. When used
  3. // on an inline element, this results in normal inline-block behavior. Block
  4. // level elements with hasLayout do not behave like inline-block elements. The
  5. // solution to inline-block behavior in IE6+7 is to make something display
  6. // inline, and then trigger hasLayout (by setting zoom or what have you).
  7.  
  8. // FF2 supports something similar to inline-block behavior via XUL using the
  9. // -moz-inline-box display setting. Setting -moz-box-orient to vertical fixes
  10. // an additional display issue with unknown width elements.
  11.  
  12. // inline-block is properly supported by webkit, FF3+, and IE8.
  13.  
  14. =inline-block
  15. :display -moz-inline-box
  16. :-moz-box-orient vertical
  17. :display inline-block
  18. :vertical-align middle
  19. :#zoom 1
  20. :#display inline
  21. // fixes alignment against native input/button on IE6
  22. :#vertical-align auto
Add Comment
Please, Sign In to add comment