Table Example
How do I make an table example?
What is a table example? How do you make a table example? This script and codes were developed by Colleen Van Lent on 21 August 2022, Sunday.
Table Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Table Example</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!DOCTYPE html>
<html lang="en"> <head> <meta charset="UTF-8"> <title>Calendar Table</title> <link rel="stylesheet" href="css/calStyle.css"> </head> <body> <table class="cal"> <caption>Oct 2015</caption> <thead> <tr> <th>Sun</th> <th>Mon</th> <th>Tue</th> <th>Wed</th> <th>Thu</th> <th>Fri</th> <th>Sat</th> </tr> </thead> <tbody> <tr> <td class="old">27</td> <td class="old">28</td> <td class="old">29</td> <td class="old">30</td> <td>1</td> <td>2*<span>Lunch with Mom</span></td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6*<span>Meet With Dean</span></td> <td>7</td> <td>8</td> <td>9</td> <td>10</td> </tr> <tr> <td>11</td> <td>12</td> <td>13*<span>Library Helper!</span></td> <td>14</td> <td>15</td> <td>16</td> <td>17</td> </tr> <tr> <td>18</td> <td>19</td> <td>20</td> <td>21</td> <td>22</td> <td>23</td> <td>24</td> </tr> <tr> <td>25</td> <td>26</td> <td>27</td> <td>28</td> <td>29</td> <td>30</td> <td class="holiday">31<span>BOO!<br/> Halloween</span></td> </tr> </tbody> </table> </body>
</html>
</body>
</html>
Table Example - Script Codes CSS Codes
/*Set the table color, border, and spacing...*/
table.cal{ color:#06425C; border-spacing: 0; border: 3px solid black; -webkit-border-radius: 25px 25px 0 0; border-radius: 0 0 25px 25px;
}
/*Alternate colors between even and odd weeks*/
tr:nth-child(odd) { background: #F2F2F2;
}
tr:nth-child(even) { background: #CDBB79;
}
/*To curve the bottom, we need to curve the
row and the element. And each element needs to
curve a different corner.*/
tr:last-child{ -webkit-border-radius: 25px 25px 0 0; border-radius: 0 0 25px 25px;
}
tr:last-child>td:first-child { -webkit-border-radius: 0 0 0 25px; border-radius: 0 0 0 25px;
}
tr:last-child>td:last-child{ -webkit-border-radius: 0 0 25px 0; border-radius: 0 0 25px 0;
}
/*Format the caption
Use border-radius for just some corners*/
.cal caption{ text-transform: uppercase; background-color: #666666; color:#ffffff; font-size: 150%; -webkit-border-radius: 25px 25px 0 0; border-radius: 25px 25px 0 0;
}
/*Format common heading and element attributes*/
.cal th, .cal td{ margin: 2px; padding-bottom: 2px;
}
/*Format the table headings*/
th{ text-align: center; background: #FFFFFF;
}
/*Set the size and alignment for elements*/
.cal td{ width:75px; height:75px; vertical-align:top;
}
/*Format any holidays*/
.holiday{ margin:0; padding:0; background-color: #51A39D;
}
/*Use a background image*/
.old{ padding:0; margin: 0; background-color: #51A39D; color:rgba(0,0,0,.25); background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/389177/holiday.png") no-repeat; border-spacing: 0; /*This is the code used in the example*/
/* background: url("../imgs/holiday.png") no-repeat;
*/
}
/*By default, hide the appointments*/
span{ display: block; text-align: center; color: #800000; visibility: hidden;
}
/*Show the appointments when the date is clicked on*/
td:active>span{ visibility:visible;
}
Developer | Colleen Van Lent |
Username | ColleenEMc |
Uploaded | August 21, 2022 |
Rating | 4 |
Size | 2,478 Kb |
Views | 38,456 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Code Together 3 No CSS - Classes | 1,796 Kb |
Teams.html | 2,210 Kb |
JS - Gallery Homework | 2,282 Kb |
Code Together 2 With CSS - Advanced Selectors | 2,237 Kb |
Consistent Browser styles - default and prefixes | 2,574 Kb |
JS - this second example | 1,990 Kb |
JS Events - Modify The DOM | 0 Kb |
Code Together 1 - No CSS | 1,773 Kb |
Index.html | 2,316 Kb |
Code Together 1 - With CSS | 2,136 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Nice responsive team page | Infomiho | 3,139 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
Simple jQuery Slider | Jurbank | 2,874 Kb |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
A Pen by tugce | Ecgutcnkr | 4,197 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!