Typesetting of English words in css form

I would like to ask how to write vertical typesetting like the Degree Course in the picture from bottom to top, because you still need to merge 9 rows of cells. After setting it to display:block, the merged cells will be invalid. If you rotate with transform, the width of the element will be very wide. How to solve this? thank you

.
Css
Dec.13,2021

each letter is put in a div and transform is rotated

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36971-2c03c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36971-2c03c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?