I am currently working on developing a To-Do list application, and I have encountered an issue with the second div that contains an unordered list. The list is not displaying, and I am unsure of the reason behind this. I attempted to remove the div and add a new one with a simple hello message, but even that did not display. It seems like there may be a conflict with the first div causing this problem.
<!doctype html>
<html>
<head>
<title>To Do list</title>
<style type="text/css">
#topBar-div{
background-color: #F44336;
position:absolute;
top: 0px;
width:100%;
height: 150px;
}
body{
margin: 0px;
padding: 0px;
}
h1{
color:white;
margin-left: 300px;
}
#textInput{
height: 30px;
margin-left: 100px;
width: 600px;
font-size: 20px;
color: #8E8E8E;
}
#addButton{
height:37px;
position:relative;
top:-4px;
right: 5px;
width: 70px;
color: grey;
}
#secondBar-div{
color: grey;
height: 350px;
width: 1000px;
}
</style>
</head>
<body>
<div id="topBar-div">
<h1>My To Do List</h1>
<input type="text" value="Title..." id="textInput">
<button id="addButton">Add</button>
</div>
<div id="secondBar-div">
<ul>
<li>Hit the gym</li>
<li>Pay bills</li>
<li>Meet George</li>
<li>Buy eggs</li>
<li>Study</li>
<li>Cook Dinner</li>
</ul>
</div>
<script type="text/javascript">
</script>
</body>
</html>