CSS How to set div height 100% minus nPx

前端 未结 11 1330
自闭症患者
自闭症患者 2020-12-02 04:17

I have a wrapper div which contans 2 divs next to each other. Above this container I have a div that contains my header. The wrapper div must be 100% minus the height of the

11条回答
  •  时光取名叫无心
    2020-12-02 05:13

    Use an outer wrapper div set to 100% and then your inner wrapper div 100% should be now relative to that.

    I thought for sure this used to work for me, but apparently not:

    
    
    
    Some text on the left

提交回复
热议问题