scrimba
UI Design
Navigations
Responsive CSS (Challenge 1)
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Responsive CSS (Challenge 1)
AboutCommentsNotes
Responsive CSS (Challenge 1)
Expand for more info
index.css
run
preview
console
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap');

html, body {
margin: 0;
padding: 0;
}

body {
font-family: 'Nunito';
height: 100vh;
}

header {
background: #3D5262;
display: flex;
justify-content: space-between;
overflow: hidden;
}

a.logo {
color: white;
text-decoration: none;
font-weight: bold;
margin: 1em .5em 0;
}

nav {
position: fixed;
top: 0;
right: 0;
height: 100vh;
background: #1D2226;
width: 66%;
visibility: hidden;
}

.exit {
width: 2em;
float: right;
margin: .5em;
cursor: pointer;
}

ul {
list-style-type: none;
padding: 0;
margin-top: 4em;
}

li a {
color: #7B8994;
text-decoration: none;
display: block;
padding: .5em 1em;
}

.open {
cursor: pointer;
margin: .5em;
}

.active a {
color: #008AF8;
font-weight: bold;
}

li a:hover {
background: #2E363D;
}
Console
/index.html
-5:47