19851
December 3, 2023, 6:51am
1
/* 1. Your portfolio should have at least one media query*/
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<nav id="navbar">
<a id="projects" href="#projects"></a>
</nav>
<section id="welcome-section"><h1 >hello</h1>
</section>
<section id="projects">
<header class="project-tile">1</header>
<a id="profile-link" target="_blank" href="https://www.freecodcamp.com"></a>
</section>
</body>
</html>
/* file: styles.css */
@media (max-width:600px){
body{
font-size:16px;}
}
#welcome-section{
height:100vh;
}
#navbar{
display:flex;
top:0
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Challenge Information:
Personal Portfolio Webpage - Build a Personal Portfolio Webpage
Hello @19851 !
I do not see the necessary link in the head of the html file to join it with the css file.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
I think this instruction was missed when you were doing the set up. Note: Be sure to add <link rel="stylesheet" href="styles.css">
in your HTML to link your stylesheet and apply your CSS
@media (max-width: 600px) {
/* Your styles for mobile devices go here */
}
add last bracket
and yes,as it is sead you need a link for styles.css
2 Likes
Your css is fine, if you add the connecting link, I believe.
@media (max-width:600px){
body{
font-size:16px;}
}
You have the correct set if with font, as long as the font is originally a different size.
1 Like
In addition to what has been said. You also need to give your #navbar
a position of fixed. So that it sticks at the top.
2 Likes
19851
December 3, 2023, 7:03am
6
thank you so much , for your answer
2 Likes
19851
December 3, 2023, 7:04am
7
thank you so much , for your answer
1 Like
system
Closed
June 2, 2024, 7:22pm
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.