|
|
 |
Tables Hands-on Exercises
- Open the faculty and staff office hours page
- Highlight the data table and remove the border, cellpadding, and cellspacing in the Properties panel
- Highlight the first row of the table and delete the bold formatting
- Set the first row of the table as a header row
- Create style declarations for <th> in your stylesheet.css file
th {
border-bottom: 3px solid #666666;
text-align: left;
padding: 3px 3px 3px 6px;
background-color: #EDEDED;
}
- Create style declarations for the spacing of the other table cells:
.office-hours td {
padding: 3px 6px 3px 1px;
border-bottom:
1px solid #666666;
}
- Set the "class" attribute of your table as "office-hours"
- Create style declarations for the row-hover property:
.office-hours tr:hover {
background-color: #ECECEC;
}
- Preview #8 in Firefox (Shift + F12) to see the row-hover effect
|