I'm trying to make a website for me but i'm having some problems.
This is what i'm trying to achieve:
And this is what i have so far
Here are the problems i'm currently facing:
I can't get rid of the white space below the navigation bar, i removed the margin and padding of both the navigation and the rest of the window but it doesn't work.
I can't properly align the text vertically in the middle like in the first image. I tried using line height and padding but when i resize the browser window vertically the text doesn't respond to the size. I want it to stay in the middle no matter what size the browser window is.
What's the best way of getting the background image to fit the size of the window? currently i'm using
width:100%; height:100vh; background-image:url("Images/background.jpg"); background-size:100% 100%;
But i feel like it's not the best way to do this
Here is my document so far:
#navigation ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #272727;
border-top: 2px solid #5e20d1;
text-align: center;
}
#navigation a {
display: inline-block;
color: #747272;
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
padding-right: 15px;
padding-left: 15px;
margin: 0;
text-decoration: none;
}
#navigation li {
display: inline;
margin: auto;
}
#navigation a:hover {
color: white;
}
#jumbo {
margin: 0;
padding: 0;
width: 100%;
height: 90vh;
background-image: url("http://i.imgur.com/D1cF3ZG.jpg");
background-size: 100% 100%;
}
#jumbo li {
display: inline;
margin: 1%;
color: white;
font-size: 20px;
}
#jumbo h1 {
color: white;
font-size: 30px;
}
<div id="navigation">
<ul>
<li><a href="#">About</a>
</li>
<li><a href="#">Skills</a>
</li>
<li><a href="#">Projects</a>
</li>
<li><a href="#">Contact</a>
</li>
</ul>
</div>
<div id="jumbo">
<h1>Responsive Front-end Developer</h1>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>JQUERY</li>
<li>WORDPRESS</li>
</ul>
</div>
I would really appreciate if someone can help me fix all these issues