Indenting text but not the first line
Tags: css
Date: 11th May, 2010
The text-indent parameter for CSS only applies to the first line. By giving it a negative value and then padding the whole text, you’ll get the result you want. Here’s the CSS:
#dateContent ul li {text-indent: -20px; padding-left: 20px;}
May 11, 2010 | Mr Portman
This doesn’t appear to work in Google Chrome for some reason.
An alternative method would be to replace the padding with a margin, but I haven’t tried that.