Skip to content

Instantly share code, notes, and snippets.

@xto3na
Created December 18, 2015 18:52
Show Gist options
  • Save xto3na/996f4f84a0da56b42de6 to your computer and use it in GitHub Desktop.
Save xto3na/996f4f84a0da56b42de6 to your computer and use it in GitHub Desktop.
Table Width Styling
//Задание одинаковых минимальных и максимальных значений
<td style="max-width:200px; min-width:200px; max-height:50px; min-height:50px; width:200px; height:50px;">
.td_size {
width:200px;
height:50px;
max-width:200px;
min-width:200px;
max-height:50px;
min-height:50px;
**overflow:hidden;** /*(Optional)This might be useful for some overflow contents*/
}
//Или
table{
border: 1px solid black;
table-layout: fixed;
width: 200px;
}
th, td {
border: 1px solid black;
overflow: hidden;
width: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment