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
58 changes: 58 additions & 0 deletions desktop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@media screen and (min-width: 601px) and (max-width: 1100) {
}

header {
background-color: fuchsia;
text-align: left;
width: clamp(601px, 50%, 1100px);
font-size: clamp(16px, 5vw, 16px);
margin: auto;
font-family: monospace, sans-serif;
}

ul {
padding-left: 0%;
padding-bottom: 5%;
margin: 0%;
}

ul > li {
display: flex;
flex-direction: row;
list-style-type: none;
text-align: left;
}

main {
display: flex;
flex-direction: row;
align-items: center;
background-color: cadetblue;
width: clamp(601px, 50%, 1100px);
font-size: clamp(14px, 5vw, 14px);
margin: auto;
font-family: monospace, sans-serif;
}

section:first-child {
flex: auto;
}

section:last-child {
text-align: left;
padding-right: 20%;
}

footer {
background-color: fuchsia;
text-align: center;
width: clamp(601px, 50%, 1100px);
font-size: clamp(14px, 5vw, 14px);
margin: auto;
font-family: monospace, sans-serif;
}
footer > p {
margin: 0;
padding-top: 2%;
padding-bottom: 2%;
}
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<html>
<head>
<title>My Personal Web Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="desktop.css" />
</head>
<body>
<header>
Expand Down
55 changes: 55 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@media screen and (max-width: 600px) {
header {
background-color: fuchsia;
text-align: center;
width: clamp(320px, 50%, 600px);
font-size: clamp(14px, 5vw, 14px);
margin: auto;
font-family: monospace, sans-serif;
}

ul {
padding-left: 0%;
padding-bottom: 10%;
margin: 0%;
}

ul > li {
list-style-type: none;
text-align:center
padding-right: 60%;
padding-left: 0%;
}

main{
display:flex;
flex-direction: column;
align-items:center;
background-color: cadetblue;
width: clamp(320px, 50%, 600px);
font-size: clamp(14px, 5vw, 14px);
margin: auto;
font-family: monospace, sans-serif;
}

section:first-child {
text-align: center;
}

section:last-child {
text-align: center;
}

footer {
background-color: fuchsia;
text-align: center;
width: clamp(320px, 50%, 600px);
font-size: clamp(14px, 5vw, 14px);
margin: auto;
font-family: monospace, sans-serif;
}

footer > p {
margin: 0;
}
}