Setting a div's height in HTML with CSS

前端 未结 14 948
无人共我
无人共我 2020-12-05 09:36

I am trying to lay out a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background c

14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 09:58

    Give this a try:

    html, body,
    #left, #right {
      height: 100%
    }
    
    #left {
      float: left;
      width: 25%;
    }
    #right {
      width: 75%;
    }
    
      
        
    Content

提交回复
热议问题