"CSS3 Tables - Moodle 3.3.3"
Bootstrap 2.3.2 Snippet by dgcruzing

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <!-- Start of content block --> <h2>Add the CSS to your Site administration Appearance\Themes\YOUR THEME\Custom\CSS & JS</h2> </div> </div> <!-- Start of content block --> </div> <div class="editor-indent" style="margin-left: 20px; padding: 0 0 0 40px; margin-right: 50px"> <table class="agenda"> <thead> <tr> <th></th> <th>August 4</th> <th>August 5</th> <th>August 6</th> <th>August 7</th> <th>August 8</th> </tr> </thead> <tbody> <tr> <td>Morning</td> <td>Day 1 Morning</td> <td>Day 2 Morning</td> <td>Day 3 Morning</td> <td>Day 4 Morning</td> <td>Day 5 Morning</td> </tr> <tr> <td>Afternoon</td> <td>Day 1 Afternoon</td> <td>Day 2 Afternoon</td> <td>Day 3 Afternoon</td> <td>Day 4 Afternoon</td> <td>Day 5 Afternoon</td> </tr> <tr> <td>Evening</td> <td>Day 1 Evening</td> <td>Day 2 Evening</td> <td>Day 3 Evening</td> <td>Day 4 Evening</td> <td>Day 5 Evening</td> </tr> </tbody> </table>
table.agenda { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; border-collapse: collapse; width: 100%; } table.agenda td, table.agenda th { border: 1px solid #fff; padding: 8px; text-align: center; } table.agenda td { padding-top: 12px; padding-bottom: 12px; background-color: #D4E4F7; color: black; } th:nth-child(1) { background: white; } th:nth-child(2) { background: #236AB9; color: white; } th:nth-child(3) { background: #236AB9; color: white; } th:nth-child(4) { background: #236AB9; color: white; } th:nth-child(5) { background: #236AB9; color: white; } th:nth-child(6) { background: #236AB9; color: white; } table.agenda tr:nth-child(1) td:first-child { background: #236AB9; color: white; } table.agenda tr:nth-child(2) td:first-child { background: #236AB9; color: white; } table.agenda tr:nth-child(3) td:first-child { background: #236AB9; color: white; }

Related: See More


Questions / Comments: