100% height block with vertical text

后端 未结 4 1811
难免孤独
难免孤独 2020-12-13 07:55

I have a block of a variable height in which I want to put another block with 100% height and vertical text (bottom-to-top direction) and stack it to the left side of the ou

4条回答
  •  被撕碎了的回忆
    2020-12-13 08:10

    I came up with this:

    
    
    
    
    
    
        
    Hi there!
    • switched the transformation to the outer element,
    • then used width attribute to define the height at the bottom of the page (when you play with that, you are actually playing with the height there.)
    • and for the empty left space visible after rotation, I used the variable width (height) as negative margin.

    You can see it here: http://pastehtml.com/view/c0hl7zxci.html

提交回复
热议问题