How to reduce gap between two display:inline items?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-04-29T08:18:18Z Indexed on 2010/04/29 8:27 UTC
Read the original article Hit count: 197

Filed under:

How to reduce gap between two display:inline items?

gap is showing on all browser?

ul.tabs li {
display:inline;
margin:0 padding:0;}

alt text

I can fix the problem using float:left in the LI elements but I need to understand why it's happening.

© Stack Overflow or respective owner

Related posts about css