Streaming live at 10am (PST)

How do I set an indent?


#1

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

Like in this screenshot.


#2

Good question.

http://caniuse.com/#search=text-indent

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


#3

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


#4

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


#5

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

Thank you very much.


#6

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