JSFiddle - React, Tailwind, and code Playground

HTML

<table border="1" width="100%">
    <tr>
        <td>1</td>
        <td>2</td>
        <td>3</td>
        <td>4</td>
        <td>5</td>
    </tr>
</table>

CSS

table tr td:not(:nth-child(2)):not(:nth-child(4)) {
    text-align: center;
}