[lang="cmn-Latn-pinyin"] { color: red; } [lang="cmn-Hani"] { color: blue; } table { margin: auto; width: 90%; } table td { vertical-align: top; }