table cell overflow hidden : td « Tags « HTML / CSS

table cell overflow hidden


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
        <title> My favorite records  </title>
        <style rel='stylesheet' type='text/css'>
table {
    width: 200px;
    border: thin solid black;
    table-layout: fixed;
th, td {
    overflow: hidden;
th, tfoot td {
    border: thin solid black;
    text-align: center;
    font-weight: bold;
tbody td {
    font-size: 120%;
caption {
    font-size: 90%;
    text-align: right;
td, th, caption {
    padding: 5px;
        <div style='width: 200px;
                     height: 30px;
                     background: gray;
                     color: white;
                     text-align: center;'>
        &lt; -- 200 pixels -- &gt;
                My favorite records.
                    <th> a</th>
                    <th> a</th>
                    <th> r</th>

                    <td> a</td>
                    <td> a</td>
                    <td> r</td>


Related examples in the same category

1.'td' Example
2.'choff' is a decimal number specifying an offset from the beginning of the table cell
3.'headers' specifies a list of 'th' elements and td
5.Line break in a table cell
6.use table cell as block
7.Hide empty cell
8.Empty table header cell
9.Table cell hover
10.Right-offset Shrinkwrapped Table
11.Table with Spanned Rows and Cells
12.Boxed Table and Cells font-weight: bold;
14.table cell hover with class
16.Selecting cells in body
17.Set style for an anchor in table cell
18.Set style for image in a table cell
19.Table cell with different class
20.Table cell with line height setting
21.Add different cell space
22.empty-cells: hide width:6em; overflow: hidden; font-size: 130%; color: #303030; font-size: 0.9em; line-height:1.5; line-height:1.5em; line-height:75%;}
29.Table with column span 2
30.Table with number column
31.css is for the table layout
32.rowspans and colspans merge the specified number of cells vertically or horizontally
33.Selecting cells in column
34.Column widths
35.Hiding column
36.col width: 200px;
37.col color: crimson;
38.Column highlight