Quote:
Originally Posted by DNSB
Should the margin: 2em; not be margin-left: 2em; since your code would result in top, bottom, right and left margins being set to 2em. I would also dump the line-height but that's a personal preference to setting line-height in 1 place only unless there is a need for a different line height.
|
You are right! And the code also would be more efficient of the following way:
Code:
div.negindent p {
margin-left: 2em;
text-indent: -2em;
line-height: 1.2em; /* of course, here you can write whatever, or supress the property */
}