Setting the first column width of the table different

You can set the first column width of the table element different from the other columns using just css. Code from internet but I like to keep it here for reference:

table tr td { width: 20em; }
table tr td:first-child { width: 10em; }

Anyone interest to use the css code can have this reference as well.

廣告
Posted in 未分類