Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
Nav bar isnt at the top of the viewport .

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ```  <head>
   <link rel="stylesheet" href="styles.css">
 <header>
    <nav id="navbar">
      <ul>
        <li><a href="#welcome-section">About</a></li>
        <li><a href="#projects">Work</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </nav>
  </header>

  <section id="welcome-section">
    <h1>Hey  I'm Mark</h1>
    <p>a web developer</p>
  </section>
  <section id="projects">
    <h2 class="project-tile">My work so far</h2>
   
    <div class="projects-container">
      <a id="project-link" href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form" target="_blank" alt="picture of survey form">
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg">
        <p class="project-title">Survey Form</p>
      </a>
     
     
      <a  id="project-link" href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-tribute-page-project/build-a-tribute-page" target="_blank">
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg">
        <p class="project-title">Tribute Page </p></a>
     
     
      <a id="project-link" href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-technical-documentation-page-project/build-a-technical-documentation-page" target="_blank">
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg">
        <p class="project-title">Technical Documentation Page</p></a>
      
     
      <a  id="project-link" href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-product-landing-page-project/build-a-product-landing-page" target="_blank">
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" alt="product landing page"><p class="project-title">Product Landing Page</p></a>


    </div>
   
   
  </section>
  <section id="contact">
    <h2>Let's work together...</h2>
    <p>Join me for a cup of coffee</p>
    <div class="social">
      <i class='fa fa-facebook'>Facebook</i>
      <i class='fa fa-twitter'>Twitter</i>
     <i class='fa fa-github'><a id="profile-link" href="https://www.freecodecamp.org/learn/2022/responsive-web-design" target="_blank">GitHuB</a></i>
    </div>
   



  </section>
  <footer>
    <p>All copyright reserved </p>
  </footer> ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

  • {
    margin: 0;
    padding: 0;
    }
    html {
    box-sizing: border-box;
    }
    body {
    font-size: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    top: 120px;
    line-height: 2.1rem;
    }

header{
background: burlywood;
position: fixed;
top:0;
width: 100%;
left: 0;
min-height: 120px ;
display: flex;
align-items: center;
z-index: 15;

}
@media only screen and (max-width: 800px) {
header {
position: fixed;
top: 0;
width: 100%;

}
}
#navbar {
display: flex;
width: 100%;
justify-content: flex-end;
max-height: 100%;
position: fixed;
}

#navbar ul {

list-style-type: none;
display: flex;
margin-right: 60px;
column-gap: 25px;
}
li a, .projects-container a{
font-size: 1.4rem;
cursor: pointer;
text-decoration: none;
color: black;
}

#welcome-section {
background: #214778;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 400px;

}
#welcome-section :first-child {
font-size: 2.9rem;
color: orangered;
line-height: 1.4;
}
#welcome-section :last-child {
font-size: 1.5rem;
}
#projects {
text-align: center;
background: #87A7DE ;
padding: 2rem 2rem;

}
.projects-header {

padding: 12px 20px;

border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}
.projects-container {
margin-top: 20px;
display: grid;
grid-template-columns: 500px 500px ;
grid-gap: 25px;
width: 100%;
justify-content: center;
align-items: center;
}

img {
max-width: 450px;
min-height: 250px;
object-fit: cover;
}
#contact {
background: rgb(62, 69, 70);
display: flex;
line-height: 1.8;
justify-content: center;
align-items: center;
flex-direction: column;
}
.social {
max-width: 600px;
display: flex;

}
.social > i {
margin-top: 20px;
margin-bottom: 20px;
padding-left: 30px;
}

footer{
background: #303841;
text-align: right;

}
footer :first-child {
padding: 40px 50px;
font-size: 1.4rem;
}
#profile-link {
text-decoration: none;
color: black;

}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.