How do I rotate individual letters and keep them flowing left-to-right?

前端 未结 4 1692
天涯浪人
天涯浪人 2021-01-04 12:02

I am trying to get a string with each individual letter rotated 90 degrees; however, I want to keep the \"flow\" of letters going left-to-right, not vertical. I also want to

4条回答
  •  春和景丽
    2021-01-04 12:59

    Pure CSS:

    ABC
    ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ .letters { height:8px; line-height:16px; border-bottom:1px solid green; position:relative; } .letters > span { float:left; -webkit-transform: rotate(-90deg); }​

    Demo

提交回复
热议问题