New to the world of html and css, and currently making my own one page website.
I'm having a couple of issues with padding and removing white in css.
Firstly, i can't remove the block of white between the first page and second... Before i entered any text on the second page, it was fine? But now that some has been implemented onto the page, it has appeared?
Secondly, how does one push text right? I have a title in my nav bar, but it's not included in the unordered list? Have i set out my html correctly? Can css fix this? I've tried changing a few things on the html, but it just makes the situation even worse.
[
HTML
<!DOCTYPE html>
<html>
<head>
<link href="./Style.css" type="text/css" rel="stylesheet">
<title> George Gilliland </title>
</head>
<body>
<div class = "Title-Page">
<div class = "Nav">
<ul>
<li><a href="#About-Me">About Me</a></li>
<li><a href="#Projects">Projects</a></li>
<li><a href="#Contact">Contact</a></li>
</ul>
</div>
<h1 id = "Title"> George Gilliland </h1>
</div>
</div>
<div id = "About-Me">
<p>
Lorem ipsum dolor sit amet, ea nec oportere torquatos, has sumo <br>
hinc vide et. In has aliquip eruditi, quis dicam sit ut.Tota
gubergren
</p>
</div>
<div id = "Projects">
</div>
<div id = "Contact">
</div>
</body>
</html>
CSS
@import url('https://fonts.googleapis.com/css?family=Poiret+One');
a:link {
text-decoration: none;
}
a:visited {
color: white;
}
.Nav {
border:1px solid #ccc;
border-width:1px 0;
font-family: Poiret One;
position: fixed;
top: 0;
width: 100%;
padding-right: 50cm;
}
.Nav ul {
text-align: right;
}
.Nav li{
display:inline;
}
.Nav a {
display:inline-block;
padding:10px;
}
body, html {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
}
.Title-Page {
background-image: url("Images/Campeche.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
}
#Title {
font-family: Poiret One;
color: white;
font-size: 60px;
position: fixed;
margin-top: 0;
}
#About-Me {
background-color: #00818f;
height: 100%;
}
h2.Font {
font-family: Nixie One;
}
#About-Me p {
padding:90px;
font-size:25px;
color:white;
height:120px;
}