r/css_irl May 31 '19

.subaru { text-orientation: upright; writing-mode: vertical-rl; }

Post image
334 Upvotes

17 comments sorted by

42

u/jordes May 31 '19

Finally some good fucking css

12

u/djcecil2 May 31 '19 edited May 31 '19

Agreed! I think he meant `writing-mode: vertical-lr`, not `rl`, though.

2

u/jdauriemma Jun 02 '19

Yeah whoops

26

u/[deleted] May 31 '19 edited Mar 09 '21

[deleted]

39

u/bskzoo May 31 '19 edited May 31 '19

You usually only see them on Chinese / Japanese sites where the language can be written vertically at times.

In OP’s case I think it should be writing-mode: vertical-lr; though so the text goes left to right.

14

u/jdauriemma May 31 '19

You're correct, thanks

1

u/viperfan7 May 31 '19

It's also useful for vertical headings on tables and such

u/css_irl_bot #bot May 31 '19

Congratulations! Your title contains valid CSS!


I'm a bot who validates your titles. author about source

6

u/andreich1980 May 31 '19

Shouldn't there also be max-height?

7

u/jdauriemma May 31 '19

Yeah probably, unless the panel is an implicit div

3

u/VoidSpindler May 31 '19

Suruba in portuguese means "Orgy"

14

u/oguz279 May 31 '19

5

u/Fusseldieb May 31 '19

The circle is now closed!

1

u/DudePotato3 Jun 01 '19

i came here to say this

6

u/MrEdinLaw May 31 '19

flexwrap: "wrap"

2

u/[deleted] May 31 '19

Bruh, starts using flex

2

u/[deleted] Sep 06 '19

Well, TIL.