Here is my Fiddle: http://jsfiddle.net/xxgkB/
I have a container <div>
that has one child, a <p>
Why does the text-indent
value double when changing the display value of the paragraph from block to inline-block?
HTML:
<div class=container>
<p>Example Paragraph</p>
</div>
CSS:
div {
background: slategray;
height: 2in;
text-indent: 1in;
width: 2in;
}
p {
display: inline-block; /* Notice the change when removing this declaration */
}