I am currently new to coding in HTML and CSS, so please bear with me if my code seems outdated or unconventional. I am working on creating a basic test website with a sidebar, but I'm encountering an issue where the items in my list are overlapping due to padding.
Check out my JSFiddle here: https://jsfiddle.net/w82akt0v/
HTML:
<!DOCTYPE html> <html lang="en"> <head>
<!--Default Stuff--> <meta charset="utf-8">
<title>Abyss</title>
<!--Script Links--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/script.js"></script>
<!--Stylesheet Links--> <link rel="stylesheet" text="text/css" href="css/style.css">
<link rel="stylesheet" text="text/css" href="css/font-awesome.min.css">
<!--Font Links--> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> </head>
<body> <!--Website Sidebar--> <div id="sidebar"> <ul> <li><a href="#">Test</a></li> <li><a href="#">Test</a></li> <li><a href="#">Test</a></li
CSS:
* Default Stuff */ body { margin:0px; padding:0px; font-family:"Open Sans", sans-serif; }
/* Website Sidebar */
#sidebar { background:rgb(41,41,41); width:180px; height:100%; position:absolute; left:0px; top:0px; }
ul { margin:0px; padding:0px; }
ul li { list-style:none; }
ul li a { background:rgb(41,41,41); color:#ccc; border-bottom:2px solid #111; width:160px; padding:10px; text-decoration:none; }
ul li:before { content:'\f1ce'; font-family:'FontAwesome'; }