Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added styles to html page #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hacktoberfest Contributors</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<header>
<h1>Hacktoberfest Contributors</h1>
<center><h1 style="color: black;">Hacktoberfest Contributors</h1></center>
</header>

<main>
Expand Down Expand Up @@ -54,9 +55,9 @@ <h2>Contributors</h2>
</section>
</main>

<footer>
<center><footer>
<p>&copy; 2023 Dès vu</p>
</footer>
</footer></center>
</body>

</html>
53 changes: 2 additions & 51 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
/* Reset some default browser styles */
body,
h1,
h2,
p {
margin: 0;
padding: 0;
}

/* Basic styling for the header */
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}

/* Main content container */
main {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}

/* Style sections */
section {
margin-bottom: 20px;
border: 1px solid #ddd;
padding: 20px;
background-color: #f7f7f7;
}

/* Style headings */
h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
}

/* Style paragraphs */
p {
font-size: 1rem;
color: #555;
}

/* Style the footer */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
body{
background-color: aquamarine;
}