Skip to content

Commit 9e84455

Browse files
Merge pull request #1 from developer-junaid/main
Changed look and feel of the website and fixed bug
2 parents d045ac3 + 90b192c commit 9e84455

2 files changed

Lines changed: 18 additions & 19 deletions

File tree

index.html

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
21
<html>
32
<head>
4-
<title> To Do List </title>
5-
<link rel="stylesheet" href="./style.css" type="text/css" />
3+
<title>To Do List</title>
4+
<link rel="stylesheet" href="./styles.css" type="text/css" />
65
</head>
76
<body>
8-
<div id="myDIV" class="header">
9-
<h2>My To Do List</h2>
10-
<input type="text" id="myInput" placeholder="Title...">
11-
<span onclick="newElement()" class="addBtn">Add</span>
12-
</div>
7+
<div id="myDIV" class="header">
8+
<h2>My To Do List</h2>
9+
<input type="text" id="myInput" placeholder="Title..." />
10+
<span onclick="newElement()" class="addBtn">Add</span>
11+
</div>
12+
13+
<ul id="myUL">
14+
<li>Hit the gym</li>
15+
<li class="checked">Pay bills</li>
16+
<li>Meet George</li>
17+
<li>Buy eggs</li>
18+
<li>Read a book</li>
19+
<li>Organize office</li>
20+
</ul>
1321

14-
<ul id="myUL">
15-
<li>Hit the gym</li>
16-
<li class="checked">Pay bills</li>
17-
<li>Meet George</li>
18-
<li>Buy eggs</li>
19-
<li>Read a book</li>
20-
<li>Organize office</li>
21-
</ul>
22-
2322
<script src="./app.js"></script>
2423
</body>
2524
</html>

styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ul li.checked {
4444

4545
/* Add a "checked" mark when clicked on */
4646
ul li.checked::before {
47-
content: '';
47+
content: "";
4848
position: absolute;
4949
border-color: #fff;
5050
border-style: solid;
@@ -71,7 +71,7 @@ ul li.checked::before {
7171

7272
/* Style the header */
7373
.header {
74-
background-color: #f44336;
74+
background-color: #63ae35;
7575
padding: 30px 40px;
7676
color: white;
7777
text-align: center;

0 commit comments

Comments
 (0)