etc

CSS | table width 고정시키기

LaKinRad 2023. 12. 1. 16:04
table {
  table-layout: fixed;
}

 

테이블 td 중 하나의 값이 너무 길어져서 테이블 밖으로 넘쳐보이는 현상이 발생했다.

 

이런 경우, table style에 table-layout: fixed 옵션을 추가하면 width 값이 고정된다.