How do I set an indent?

This is probably something very simple, but I can’t find it. How do I set an indent?

Like in this screenshot.

Good question.

the text-indent property is not fully supported. May I ask why this is needed?

1 Like

Hi @PixelGeek, my design is very much magazine style. In magazines this is used often. If I really want it, but not too sure, I guess I can use rich text and use a white small image and let the text wrap around it. But all that hassle…

Thanks for replying

Hi @wim,
you can always add non-breakable spaces by pressing SHIFT+SPACEBAR.

If thats not good enough, you can manually add style rules via javascript if need be.
Use this

<script type="text/javascript">
var makeIndent = document.querySelector(".targetclass");
makeIndent.style.textIndent = "50px";
</script>

Change the name targetclass to your classname and the 50px to whatever fits your needs. You can also use % of course.

I hope this will help.

Best,
Karl-Heinrich

1 Like

@Karl-Heinrich, Oh, very nice. Good to know the SHIFT+SPACEBAR. Great!

Thank you very much.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.