I'm a rookie with HTML/CSS/JavaScript and new to StackOverflow. I attempted to make a nav pane at the top of the page with three centred list items in an unordered list. I wanted to set the padding evenly inside of the container to spread them out evenly. After fighting it, I figured out that there seems to be some sort of hidden space in between the padding of the ul and the li element. The padding percentages for the elements do not add up to 100 percent, they add up to 80. If i set the outside percentages of the ul to 20% making a total of 100%, one of my li elements drops down below the navpane and out of line with the others.
The space is NOT in between each list item it seems to be happening before the first li item and after the last li item. I have attempted to remove the white space but the issue is still there. Thank you.
HTML:
<!DOCTYPE HTML>
<html id="page">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="stylesheet.css">
<script src="script.js"></script>
<script src="jquery.js"></script>
</head>
<body>
<img id="backgroundimg" onload="fadeIn(backgroundimg)" src="C:\Users\Jessica and Larry\Desktop\Projects\Test Template 1\img\background1.jpg">
<div id="navpane">
<ul id="options">
<li><button id="shirtdrop"><a>Shirts</a></button></li><li><button id="shoedrop"><a>Pants</a></button></li><li><button id="pantsdrop"><a>Shoes</a></button></li>
</ul>
</div>
<div id="photochanger">
<img>
</div>
</body>
</html>
CSS:
header {
width: 100%;
}
body {
margin: 0;
height: 100%;
}
#page {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#backgroundimg {
display: none;
opacity: 0.4;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#navpane {
text-align: center;
height: 60px;
width: 100%;
background: #d7dfed;
position: absolute;
opacity: 0.4;
top: 0;
}
#options {
list-style: none;
max-width: 100%;
margin: 0;
padding: 0 10%;
}
#options li {
display: inline-block;
padding: 0 10%;
margin: 0;
text-align: none;
}
#options a {
float: left;
font-size: 30px;
padding: 15px 0px;
}
#shirtdrop {
background-color: inherit;
outline: none;
border: none;
padding: 0;
}
#shoedrop {
max-width: 140px;
background-color: inherit;
outline: none;
border: none;
padding: 0;
}
#pantsdrop {
background-color: inherit;
outline: none;
border: none;
padding: 0;
}
#photochanger {
position: absolute;
height: 20%;
width: 70%;
border: black;
border-width: 1px;
border-style: solid;
bottom: 45%;
left: 15%;
}