How can I display vertical text in table headers, using HTML-CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I display vertical text in table headers, using HTML-CSS?

I am transforming a Word document to CSS. In it there is a big table with a table header displaying the header with vertical text. The header has to be read from the bottom to the top. How can I fix this? Still learning coding ;-) Thank you in advance.

16th Sep 2019, 6:02 PM
Bernard Kemman
Bernard Kemman - avatar
5 Answers
+ 2
You just solved yourself, nice to know the solution! :)
16th Sep 2019, 8:18 PM
CodeX
CodeX - avatar
+ 1
Hm, good question, I didnt use it yet, not sure what if you change -90 to 90? Maybe Im wrong, havent tested the code in codepen or here or maybe writing-mode: vertical-lr or sideways-lr
16th Sep 2019, 8:00 PM
CodeX
CodeX - avatar
+ 1
CodeX: using writing-mode:tb-rl and transform:rotate(-180deg) works correctly! Thank you for your help!
16th Sep 2019, 8:16 PM
Bernard Kemman
Bernard Kemman - avatar
0
Hi CodeX, I tried the first solution and this a big step, thnx for that. Using writing-mode: vertical-rl and text-orientation: sideways-right doesn't fix the problem because we have to read from the top to the bottom instead bottom to top. Do you know another solution besides using -90 degrees?
16th Sep 2019, 7:50 PM
Bernard Kemman
Bernard Kemman - avatar