I'm currently learning HTML and CSS on my own while I am in university.
My current project involves creating a one-page website, but I am having difficulty positioning the navigation bar over the title page. My goal is for the navigation bar to remain fixed on each page, which I plan to accomplish using JavaScript later in the project.
If anyone could provide some guidance on how to achieve this, it would be greatly appreciated. Below is a snippet of the CSS code I have been working with:
Thank you!
@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;
list-style:none;
margin:0;
padding:0;
text-align:center;
font-family: Poiret One;
}
.Nav li{
display:inline;
padding: 40px;
}
.Nav a{
display:inline-block;
padding:15px;
}
.Title-Page {
background-image: url("Images/Campeche.jpg");
background-size: cover;
padding: 200px 0 260px 0;
height: 600px;
margin: 0;
}