Skip to content

Commit

Permalink
Media Queries: Remove link to kevin powell's conquering responsive la…
Browse files Browse the repository at this point in the history
…yout course (#29299)

* Remove link to kevin powell's conquering responsive layout course

this resource was already mentioned in a previous lesson "Natural responsiveness".
repeating it is redundant.

* fix linting errors
  • Loading branch information
GaneshS288 authored Jan 10, 2025
1 parent a8e4f79 commit 5c13f64
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion advanced_html_css/responsive_design/media_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,25 @@ In the above example, the margin is changed based on screen size. Specifically,
Really, that's all there is to it. You can create some complex shifting layouts with just this knowledge alone. You can create an unlimited number of media queries in a single document (Click the 'Edit on CodePen' button so you can resize your screen and see the changes):

<p class="codepen" data-height="300" data-theme-id="dark" data-default-tab="css,result" data-slug-hash="yLzYgZw" data-editable="true" data-user="TheOdinProjectExamples" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">

<span>See the Pen <a href="https://codepen.io/TheOdinProjectExamples/pen/yLzYgZw">
Media Queries 1 | CSS Responsiveness</a> by TheOdinProject (<a href="https://codepen.io/TheOdinProjectExamples">@TheOdinProjectExamples</a>)
on <a href="https://codepen.io">CodePen</a>.</span>

</p>

<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>

You can also put any number of style definitions inside a media query:

<p class="codepen" data-height="300" data-theme-id="dark" data-default-tab="css,result" data-slug-hash="XWempGr" data-editable="true" data-user="TheOdinProjectExamples" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">

<span>See the Pen <a href="https://codepen.io/TheOdinProjectExamples/pen/XWempGr">
Media Queries 2 | CSS Responsiveness</a> by TheOdinProject (<a href="https://codepen.io/TheOdinProjectExamples">@TheOdinProjectExamples</a>)
on <a href="https://codepen.io">CodePen</a>.</span>

</p>

<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>

### Tips
Expand Down Expand Up @@ -86,7 +92,9 @@ This is not something we're going to focus on in our curriculum, but it may be s
### Assignment

<div class="lesson-content__panel" markdown="1">

1. Look through [Using media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) on MDN. There are a few additional things you can do with media queries that might be worth knowing about, though their usage is much less common.

</div>

### Knowledge check
Expand All @@ -101,4 +109,3 @@ The following questions are an opportunity to reflect on key topics in this less
This section contains helpful links to related content. It isn't required, so consider it supplemental.

- This [Media Query Tutorial](https://www.freecodecamp.org/news/css-media-queries-breakpoints-media-types-standard-resolutions-and-more/) on FreeCodeCamp covers the same items we've touched on here.
- If you want more hands-on practice, this [Conquering Responsive Layouts](https://courses.kevinpowell.co/conquering-responsive-layouts) course by Kevin Powell might interest you. You'll have to sign up.

0 comments on commit 5c13f64

Please sign in to comment.