Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
I’m not able to get the projects grid right. How do I fix this issue?
Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Personal Portfolio Webpage</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <nav id="navbar" class="nav-bar">
      <ul id="nav-list">
        <li><a href="#welcome-section">About</a></li>
        <li><a href="#projects">Work</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </nav>
    <section id="welcome-section" class="welcome">
      <h1>Hey I am Mimic</h1>
      <p>a web developer</p>
    </section>
    <section id="projects">
      <h2>These are some of my projects</h2>
        <div class="projects-grid">
          <a href="https://codepen.io/freeCodeCamp/full/zNqgVx">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg" alt="tribute page" class="project-img">
            <p class="project-tile">Tribute Page</p>
          </a>

                 <a href="https://codepen.io/freeCodeCamp/full/qRZeGZ">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/random-quote-machine.png" alt="" class="project-img">
            <p class="project-tile">Random Qoute Machine</p>
          </a>

                 <a href="https://codepen.io/freeCodeCamp/full/wgGVVX">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/calc.png" alt="" class="project-img">
            <p class="project-tile">JavaScript Calculator</p>
          </a>

                 <a href="https://codepen.io/freeCodeCamp/full/mVEJag">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/map.jpg" alt="" class="project-img">
            <p class="project-tile">Map Data Across The Globe</p>
          </a>

                 <a href="https://codepen.io/freeCodeCamp/full/wGqEga">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/wiki.png" alt="" class="project-img">
            <p class="project-tile">Wikipedia Viewer</p>
          </a>

                 <a href="https://codepen.io/freeCodeCamp/full/KzXQgy">
            <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tic-tac-toe.png" alt="" class="project-img">
            <p class="project-tile">Tic Tac Toe Game</p>
          </a>
        </div>
      </section>
    <section id="contact">
      <h1>Let's work together...
</h1>
<p id="contact-p">How do you take your coffee?</p>
<div id="contact-links">
  <a href="" id="profile-link" target="_blank">GitHub</a>
</div>
    </section>
  </body>
</html>

#navbar{
top:0;
left:0;
position:fixed;
background-color:#be3144;
width:100%;
display:flex;
justify-content:right;
}

body{
font-family:Poppins, sans-serif;
}
ul{
list-style:none;
display:flex;
flex-direction:row;

}
a{
text-decoration:none;
color:white;
font-size:2.2em;
padding:1rem 2rem;
}

a:hover{
background-color:#45567d;
}

#welcome-section{
width:100%;
height:100vh;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
background-color:#000;
margin:0;
padding:0;
background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}
h1{
color:white;
font-size:4rem;
font-weight:700;

}
#welcome-section>p{
font-size:2rem;
font-style:italic;
font-weight:100;
color:#be3144;
}
#projects{
padding: 10rem 2rem; text-content:center;
background-color:#45567d;
}

h2{
font-size:3.2rem;
color:white;
margin:0;

}

@media(max-width:800px){h2{
font-size:2.5rem;
}
.project-img{
height:calc(100%-4.8rem);
width:100%;
object-fit:cover;
}
.project-tile{
color:white;
width:100%;
background-color:#303841;
margin:0;
padding:2rem 0rem;

.projects-grid{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 4rem
rem;
width: 100%;
max-width: 1280px;
margin: 0 auto;
margin-bottom: 6rem;
}

#contact{
background-color:#303841;
width:100%;
height:80vh;
padding:1rem 2rem;
display:felx;
flex-direction:column;
justify-items:center;
align-items:center;

}

#contact-p{
color:white;
font-style:italic;
font-weight:100;
text-align:center;
font-size:1.7rem;
}

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 ``` line above and the ``` 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

Just glancing at your code, and I see this

.project-tile{
color:white;
width:100%;
background-color:#303841;
margin:0;
padding:2rem 0rem;

.projects-grid{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 4rem
rem;
width: 100%;
max-width: 1280px;
margin: 0 auto;
margin-bottom: 6rem;
}

You are missing a closing brace } before your .projects-grid style starts

Can you explain more on what you are trying to do. I see your site, but what’s off with the grids? What positioning or style are you trying to have that its not doing what you want it to do?

Oh ya, thanks for pointing that out

Hi! I’m not able to view “my projects” section in a grid fromat despite putting the required CSS properties for it. I wanted to know how to fix it

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