<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
This is a personal project and therefore cannot be found on the Code Academy website. That being said, I will provide as much evidence I can in the clearest format possible to allow people to understand and help me solve my problem
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
There are no error messages as this is my personal website. What I need help with is how to position an Unordered List (ul) that has been made to float horizontally, to the right side of an icon which should be aligned at the very left side of the Unordered list? And secondly, How can I center the icon in the center of the Navigation bar - Vertically?
HTML CODE:
Learn to Code<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
<ul>
<i class="fa fa-home" style="font-size:24px;color:white;"></i>
CSS CODE:
html, body {
min-height: 100%;
display: flex;
flex-direction: column;
font-weight: 300;
line-height: 1.5;
}
header {
padding: 20px 0;
}
header .row,
footer .row {
display: flex;
align-items: center;
}
header nav {
display: flex;
justify-content: flex-end;
}
header p {
padding: 0 20px;
margin: 0;
}
body {
font-family: ‘Lato’, sans-serif;
background-image: url(‘https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-3/background.jpg’);
background-position: center top;
background-size: cover;
margin: 0;
}
}
/* FOOTER NAVIGATION */
The website works properly and both this lines of code have been placed inside a single folder.
Thanks for your time
Regards
Satanshu
<do not remove the three backticks above>