Table cells right align inside row

前端 未结 5 1336
情话喂你
情话喂你 2021-01-21 02:24

I\'m trying to figure out how to move a cell to the left on HTML table. I want to use less cells in the last row and it\'s on the right by default.

I have this table for

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-21 03:12

    The td should span two columns by using the attribute colspan="2", and align the text to the right:

    .alignRight {
      text-align: right;
    }
    one two three
    one two three
    this right

    Another, html only, option is to use colspan="2" on the "this" cell:

    one two three
    one two three
    this right

提交回复
热议问题