html - Gap between two <div> tags with display:inline-block -
this question has answer here:
so, i'm using display:inline-block put 2 <div> tags side side in html. have no margin , no padding.
still there appears gap between 2 <div> tags.
my question why there gap in first place. shouldn't <div>s flush next each other? artifact of spec or not? happens across browsers. (tested on ie , chrome)
here's image
http://jsfiddle.net/v60e8wm5/1/
as display short of inline, there space between them <b>hello,</b> world have space between them.
because there space between tags
<div>test</div> <div>test</div> test with
<div>test</div><div>test</div> or
<div>test</div><!-- --><div>test</div>
Comments
Post a Comment