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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<html>
<head>
<title>My Personal Web Page</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<header>
Expand Down Expand Up @@ -34,3 +38,5 @@ <h2>Contact Information</h2>
</footer>
</body>
</html>


71 changes: 71 additions & 0 deletions stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

html{
font-size:18px;
font-style:bold;
}

/*mobilescreen*/
@media screen and (max-width: 600px) {
body{
background-color: blue;
align-items:center;
font-size:0.5rem;
}
header{
background-color:lightblue;
font-size:0.8rem;
}
h1{
font-size:1.0rem;
color:red;
}
main{
display:flex;
flex-direction:row;
}
section{
width:30%;
}
ul{
list-style:none;
}

}


/*desktop and devices*/
@media screen and (min-width:601px){
body{
background-color:pink;
font-size:1.0rem;
display:flex;
flex-direction:column;
align-items:center;

}
header{
background-color:lightgrey;

}

h1{
color:rgb(42, 42, 39);
width: clamp(200px, 50%, 1000px);
font-size: clamp(20px, 50vw, 50px);
}

main{
display:flex;
flex-direction:column;
align-items:center;
}

section{
width:30%;
}

ul{
list-style:square;
}

}