Can anyone help me understand why the URL is appearing with margin to the right of the div?
https://i.sstatic.net/ECtDV.jpg
Here is my code:
#banner {
height:30px;
width: 750px;
margin: 0 auto;
background-color: aquamarine;
}
#banner ul{
list-style: none;
height:30px;
}
#banner ul li {
float: left;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<title>title</title>
<link rel='stylesheet' href='styles/index.css' type='text/css'/>
</head>
<body>
<div id='banner'>
<ul >
<li>Home</li>
<li>link</li>
<li>product</li>
<li>phone</li>
<li>cat</li>
<li>about</li>
</ul>
</div>
</body>
</html>
I'm facing two questions, can someone provide explanations for these issues?