2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Current Level: 14 | 15
Adding a shared CSS file improves your project’s appearance and teaches you how to collaborate on shared assets using GitHub Issues, branches, and pull requests.
This task will be completed together as a group while one person screen shares to complete the technical steps. Other members will observe, support, and review the work to ensure everyone understands the process.
As a group, you will create and resolve a GitHub Issue to add shared styling across your website.
Create a GitHub Issue (Group)
Add shared CSS styling
.Create a New Branch (Assigned Student)
add-style
.Create a style.css
File
style.css
in the root of the repo.body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
padding: 20px;
}
Edit index.html
<head>
section, add this line:<link rel="stylesheet" href="style.css">
Commit and Reference the Issue
Closes #15
(replace with the actual issue number).Open a Pull Request
add-style
branch into main
.Group Review and Merge
main
.style.css
file was createdindex.html
was updated to use the CSS fileWhy is it important to use one shared CSS file instead of everyone adding styles to their own page?