Can I create a HTML table width a percentage height but pixel accurate row heights?

后端 未结 8 685
逝去的感伤
逝去的感伤 2021-01-07 05:37

I need to create a table on a web page that has two rows. The table needs to fill the entire page so I have set the height and width of the table to 100% in the CSS styleshe

8条回答
  •  终归单人心
    2021-01-07 06:02

    Ok in light of new information (namely the tabular data), here is a solution:

    
    
    
    
    
    
    1 2
    3 4

    I'll keep the one below for completeness if you want a non-tabular solution. There's no reason it can't be extended to a 2x2 grid either by use of floats or positioning:

    
    
      
    
    
      
    Top
    Bottom

提交回复
热议问题