scrimba
Frontend Career Path
Learn UI design
Simple layout
Working with Photographs
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

AboutCommentsNotes
Working with Photographs
Expand for more info
index.css
run
preview
console
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

html, body {
margin: 0;
padding: 0;
height: 100vh;
}

body {
font-family: 'Montserrat';
display: grid;
align-items: center;
background: linear-gradient(322deg, rgba(43,46,39,1) 29%, rgba(28,28,28,1) 29%, rgba(28,28,28,1) 40%, rgba(43,46,39,1) 40%, rgba(43,46,39,1) 48%, rgba(28,28,28,1) 48%, rgba(28,28,28,1) 92%, rgba(113,174,33,1) 92%, rgba(113,174,33,1) 100%);

color: white;
}

.container {
width: 40%;
margin-left: 4em;
height: 50vh;
}

h1 {
margin-top: 0;
font-size: 2.4em;
}

p {
font-size: 1.2em;
margin-bottom: .5em;
text-transform: uppercase;
}

span {
position: relative;
}

span:before {
position: absolute;
content: '';
height: .2em;
width: 80%;
bottom: .1em;
z-index: -1;
background: #71AE21;
}
/*

- White Space
- Color
- Contrast
- Scale
- Alignment
- Typography
- Visual Hierarchy

*/
Console
/index.html
-5:32