Hi,
I am working through the following Responsive Web Design project and trying to get the following html content to switch from a centered flex row to a centered flex column when screen is narrower than 500px. The browser is reading the initial content but not the @media query specs.
Thank you!
html
<div id="trombone-types">
<div id="tenor">
<p>TENOR TROMBONE
<br>
<br>
$600
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum dolor.
<br>
<br>
Lorem ipsum.
</p>
<br>
<button type="submit">
SELECT
</button>
<br>
<br>
</div>
<div style="height: 20px;"></div>
<div id="bass">
<p>BASS TROMBONE
<br>
<br>
$600
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum dolor.
<br>
<br>
Lorem ipsum.
</p>
<br>
<button type="submit">
SELECT
</button>
<br>
<br>
</div>
<div style="height: 20px;"></div>
<div id="valve">
<p>VALVE TROMBONE
<br>
<br>
$600
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum.
<br>
<br>
Lorem ipsum dolor.
<br>
<br>
Lorem ipsum.
</p>
<br>
<button type="submit">
SELECT
</button>
<br>
<br>
</div>
</div>
CSS
#trombone-types {
display: flex;
flex-direction: row;
justify-content: center;
}
@media (max-width:500px) {
#trombone-types {
display: flex;
flex-direction: column;
align-items: center;
}
Latest version of Chrome
Challenge: Build a Product Landing Page
Link to the challenge: