Class 04 focused on advanced CSS styling techniques, including CSS pseudo-classes, element positioning, color systems, and table styling. Students learned how to create interactive web elements and implement professional styling approaches.
.A:hover {
color: red;
}
.A:active {
color: green;
}
.A:link {
color: orange;
}
Purpose: These pseudo-classes provide interactive feedback to users when they interact with links.
.d {
text-align: center;
margin: 20px auto;
width: 80%;
}
Explanation:
.aa { color: hsl(0, 80%, 50%); } /* Red */
.bb { color: hsl(240, 80%, 50%); } /* Blue */
.cc { color: hsl(120, 80%, 50%); } /* Green */
.dd { color: hsl(60, 80%, 50%); } /* Yellow */
HSL Benefits: More intuitive than RGB for color manipulation and theming.
body {
background-image: url("image_03.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: 100% 100%;
}
table, th, td {
text-align: center;
border: 1px solid purple;
border-collapse: collapse;
padding: 10px;
}
th {
background-color: blueviolet;
}
| Student Name | Student ID | Course |
|---|---|---|
| Majharul Islam | 232002256 | CSE |
| Amar | 232002257 | CSE |
| Rafiq Ahmed | 232002258 | CSE |
| Skill | Implementation | Application |
|---|---|---|
| CSS Pseudo-classes | :hover, :active, :link | Interactive user interface elements |
| Element Positioning | margin: auto, text-align: center | Responsive layout design |
| Color Systems | HSL, RGB values | Consistent color theming |
| Background Styling | background properties | Professional page backgrounds |
| Table Design | border-collapse, padding | Data presentation |
margin: auto with a defined width for horizontal centeringclass_04.html - Main HTML structure with student tableclass_04.css - Complete styling with pseudo-classes and centeringclass_04_documentation.html - This comprehensive documentation