scrimba
Frontend Career Path
Responsive design
Build a Product Splash Page
Adjust content for wider screens
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

Adjust content for wider screens
AboutCommentsNotes
Adjust content for wider screens
Expand for more info
styles.css
run
preview
console
body {
font-family: 'Source Sans Pro', sans-serif;
color: #404040;
margin: 0;
}

/* =================
Typography
================= */

h1 {
font-size: 2.5rem;
font-weight: 400;
text-shadow: 0 2px #816fca;
}

h2 {
font-size: 2.25rem;
margin: 0.167em 0;
}

p {
font-size: 1.125rem;
line-height: 1.35;
}

.beta-text {
font-weight: 900;
}

.subheading {
color: #575757;
font-weight: 900;
margin-bottom: 0.5em;
}

.beta-text,
.subheading {
text-transform: uppercase;
}

/* =================
Flex containers
================= */

.intro,
.main-content {
display: flex;
flex-direction: column;
}

/* =================
Intro
================= */

.intro {
justify-content: center;
min-height: 250px;
text-align: center;
color: #fff;
background-color: #9480e4;
}

/* ====================
Main content
==================== */

.main-content {
align-items: center;
padding-top: 2.5em;
padding-left: 2em;
padding-right: 2em;
}

.img-main {
width: 120px;
border-radius: 50%;
}

/* =================
Form
================= */


/* =================
Media queries
================= */

/*
Challenge: Adjust text for wider screens
- In the media query, increase the h1 font-size to
a rem value equal to 52px
- Increase the h2 font-size to a rem value equal to 42px
- Increase the font-size of .beta-text to a
rem value equal to 20px
*/

@media (min-width: 576px) {
body {
display: flex;
}

.intro,
.main-content {
width: 50%;
}

.intro {
min-height: 100vh;
}

.main-content {
justify-content: center;
padding-top: 0;
}
}
Console
/index.html
-3:32