Can Sass select element by postion?
css, sass
Solution
Yes, You can do it by CSS.
Use this:
table tr td:nth-child(1){
}
table tr td:nth-child(2){
}
Like many more. Here is the reference site.
- nth-child.
- evenodd.
Problem
There is a table, and there is no `id` with `td` ``` <table id='mytable'> <tr> <td> I want to right without id </td> <td> I want to left without id </td> </tr> </table> ``` How to make the content of the first `td` align right and the second align left ?