r/csshelp • u/MycologistSame866 • May 23 '25
What Am I Doing Wrong???
I'm trying to indent these lines and can't understand why it isn't working. Here's both the CSS and HTML:
CSS
#workskin .indent-text {
text-indent: 1.5em;
}
HTML
<span class="indent-text"><i>X</i></span><br />
<span class="indent-text"><i>Y</i></span><br />
<span class="indent-text"><i>Z</i></span><br />
3
Upvotes
View all comments
Show parent comment
1
u/beardChamp May 24 '25
Right. text-indent only adds space to the first line. Think paragraph indents. If you want to push all the lines over, you can use margin-left or margin-block-start.