Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/more-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<html>
<head>
<title>My Personal Web Page</title>

<link rel="stylesheet" href="styles.css" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

</head>
<body>
<header>
Expand All @@ -12,6 +17,7 @@ <h1>Welcome to My Personal Web Page</h1>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
<img id="more-icon" src="assets/more-icon.png"></img>
</nav>
</header>
<main>
Expand Down
97 changes: 97 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
html {
font-family: Helvetica, sans-serif;
font-size: 14px;
}

nav ul {
list-style-type: none;
}

nav ul li a {
text-decoration: none;
color: #000;
}

nav ul li {
margin-right: 10px;
font-size: 1.25rem;
margin-bottom: 10px;
}



@media (min-width: 601px) {

header {
display: flex;
justify-content: space-between;
align-items: center;
}

nav ul {
display: flex;
align-items: center;
list-style-type: none;
}

#more-icon {
display: none;
}
}


@media (min-width: 541px) and (max-width: 600px) {

html {
font-size: 12px;
}

/* center-align the header */
header {
text-align: center;
}


/* stack the navigation vertically */
nav ul {
display: flex;
flex-direction: column;
}


#more-icon {
display: none;
}
}


@media (max-width: 540px) {

html {
font-size: 12px;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
}

nav ul {
display: none; /* Hide all nav items initially */
}

#more-icon {
height: 36px;
width: 36px;
}
}


h2 {
font-size: clamp(1.5rem, 1.5vw, 1.75rem);
}

p {
font-size: clamp(1.25rem, 1.5vw, 1.5rem);
}