HTML — Two Tables Horizontally Side by Side

后端 未结 9 547
野趣味
野趣味 2020-11-30 09:49

I\'m trying to display tables next to each other horizontally, but this is what I\'m getting.
\"enter

9条回答
  •  醉梦人生
    2020-11-30 10:47

    To show two tables side by side, you can add the below CSS:

    table.table1, table.table2{
        width:49.8%;
        display: inline-table;
    }
    

提交回复
热议问题