select the whole on click instead of only the inside of it

后端 未结 1 604
别跟我提以往
别跟我提以往 2021-01-28 14:02

ok here is the thing, I have a table where I have some \'s, what I want: make clickable the full which contains those

相关标签:
1条回答
  • 2021-01-28 15:00

    Specify a display of block on your <a> elements, and add the padding those instead. It might also be worthwhile to remove the padding on the <td> element:

    td {
        border-bottom: 0;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        padding: 0;
    
        a {
          padding: get-space(x-small) + 2;
          display: block;
        }
    }
    

    If you need to retain the red border, target the <span> element:

    td {
        border-bottom: 0;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        padding: 0;
    
        a {
          padding: get-space(x-small) + 2;
          display: block;
    
          span {
            border: 1px solid red;
          }
        }
    }
    
    0 讨论(0)
提交回复
热议问题