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

Add heading and footer #7

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
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1 class = "heading"> QUIZ</h1>
<div id="wrapper">
<div id="quizDiv">

<div class="timer">5</div>
<div class="question">Question</div>
<div class="options">
Expand All @@ -23,6 +25,7 @@
<h2></h2>
</div>
</div>
<footer class = "foot">© 2024 quiz by mohammad ziya</footer>

<script src="quiz.js"></script>
</body>
Expand Down
14 changes: 14 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ body {
}
#scoreDiv {
display: none;

}
.timer {
position: absolute;
Expand Down Expand Up @@ -71,3 +72,16 @@ button {
cursor: pointer;
box-shadow: 1px 2px 4px 2px rgba(0, 0, 0, 0.4);
}
.heading {
text-align: center;
}
.foot{

text-align: center;
position: absolute;

top: 580px;
background-color: #fff;
width: 100%;

}