I want to indent my text for a website I am making in HTML. I don't want to keep typing &nsbp;
four times. I know there is a way to do this, but I'm not sure how.
If you are just looking to indent the first line, it's
p
{
text-indent: 4em; /* or 15px, or 5%, 2rem or 3vw */
}
You could easily apply this to a div or whatever you want.
If you are looking to indent all lines, you of course will want padding-left: 4em;
.