Created
December 18, 2015 18:52
-
-
Save xto3na/996f4f84a0da56b42de6 to your computer and use it in GitHub Desktop.
Table Width Styling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Задание одинаковых минимальных и максимальных значений | |
<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