td background: lightyellow; : td background « Tags « HTML / CSS






td background: lightyellow;

    

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>width</title>
<style type='text/css'>
table {
    margin-bottom: 5px;
}
td {
    background: lightyellow;
}
table, td {
    border: 1px solid gold;
}
</style>


    </head>
    <body>
        <table>
            <tbody>
                <tr>
                    <td>
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
                        Vestibulum tellus orci, dignissim ut, consequat in, consectetuer
                        et, nibh. Donec luctus ante a neque convallis ultricies.
                    </td>
                </tr>
            </tbody>
        </table>
        <table>
            <tbody>
                <tr>
                    <td>
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
                    </td>
                </tr>
            </tbody>
        </table>
        <table>
            <tbody>
                <tr>
                    <td>
                        Lorem ipsum dolor sit amet...
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>

   
    
    
    
  








Related examples in the same category

1.td background-color: gold;
2.Table and table cell backgrounds
3.td background-color:#efefef;
4.th background: lightyellow;
5.td background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
6.td:empty background: gray;
7.Column Background
8.col background: rgb(244, 244, 244);