HTML Table Code with Cool CSS
HTML Table Code
Need HTML table code for your next project? Why not get a head start on it with this CSS and HTML table layout assembled below. All that needs to be done is change the Item 1-10 to the items in the table and possibly add more style to the CSS.
HTML table code will help to structure data, but are really not supposed to be used for website layout. If you want to make CSS layout style changes, check out our guide to removing elements with CSS
/* sidebar headline 2 */
.titlebox .usertext-body h2 {
border-top: 1px solid #8F8F8F;
padding-top: 5px;
padding-bottom: 5px;
background-color: #C4C4C4; /*E8E8E8 E0E0E0 8F8F8F*/
font-size: 89%;
color: #424242;
text-align: center
}
/* sidebar rules */
.titlebox .usertext-body ol {
background-color: #E8E8E8;
padding-top: 2px;
padding-left: 25px;
padding-right: 20px;
padding-bottom: 5px;
margin: 0px;
font-size: 95%;
color: black
}
/* sidebar rules */
.titlebox .usertext-body ul {
background-color: #BFBFBF;
padding-top: 2px;
padding-left: 25px;
padding-right: 20px;
padding-bottom: 5px;
margin: 0px;
font-size: 85%;
list-style-type: none;
color: gray
}
/* related subreddits table */
.titlebox .usertext-body table {
background-color: #E8E8E8;
width: 100%;
padding-top: 5px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 5px;
margin: 0px;
list-style: none;
font-size: 90%
}
.titlebox .usertext-body th {
display: none
}
.titlebox .usertext-body td:hover {
background-color: #FFDD00;
}
</style>
<table>
<tbody>
<tr>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 1</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 2Item 3</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 4</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 5</span></span></td>
</tr>
<tr>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 6</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 7</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 8</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 9</span></span></td>
<td><span style=”color: #333333; font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif;”><span style=”font-size: 14px; line-height: 21px;”>Item 10</span></span></td>
</tr>
</tbody>
</table>
Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
Item 6 | Item 7 | Item 8 | Item 9 | Item 10 |
Leave a Reply
Want to join the discussion?Feel free to contribute!