scrimba
Frontend Career Path
Responsive design
Build a Product Splash Page
Add a breakpoint 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

Add a breakpoint for wider screens
AboutCommentsNotes
Add a breakpoint 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 the layout for wider screens
- Add a media query that targets a browser width of 576px or wider
- Within the media query, convert the parent element of .intro and
.main-content to a flex container
- Set the width .intro and .main-content to exactly
half the total width of their parent container
*/

Console
/index.html
-4:01