Quote:
Originally Posted by Oldpilot
I reckon I should get rid of margin-left: 22px; but how do I transform the normal indentation to a hanging indent? By changing text-indent: 1.5em to text-indent: -22px; ?
|
Yes, hanging indent is obtained with:
margin-left:
x+y
text-indent:
-x
where
x is the amount you want it to "hang", and
y is the additional left margin you want, if any. In your case
x=22px,
y=0.
Quote:
While on the subject of CSS, if I want a paragraph to be ragged right, would I change text-align: justify; to text-align: left; ?
|
Exactly