79263578

Date: 2024-12-09 00:23:12
Score: 1
Natty:
Report link

Here's an example of how to achieve what you want with only HTML & CSS.

:root
{
  --data-indent: 0;
  --data-indent-size: 20px;
}

.indent
{
  --data-indent: 1;
}

.indent:before
{
  content: "";
  padding-left: calc( var(--data-indent) * var(--data-indent-size) );
}
<p>No indent class.</p>
<p class="indent">Simple indent class.</p>
<p class="indent" style="--data-indent: 2">Double indent style.</p>
<p class="indent" style="--data-indent: 3">Tripple indent style.</p>

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KLASANGUI