Reputation: 163
I ran into really weird issue. ( http://jsfiddle.net/Fq68D/ )
HTML
<div>
<p>Hello World!</p>
</div>
CSS
div {
display:inline-block;
}
p {
background-color:#ccc;
padding:10%;
white-space:nowrap;
}
In Firefox it works like expected, text fits in p, and has padding,
While in Chrome and IE text gets out of box.
What causes this? Any workarounds?
Upvotes: 11
Views: 10988