Create a Media Query (WORK!)

Create a Media Query (WORK!)
0

#1

Tell us what’s happening:

Saya memiliki kendala untuk tahap ini. tapi setelah saya coba dan berhasil. bisa di share bila ini berguna. bukan masalah crome atau mozila. murni coding

Your code so far


<style>
  p {
    font-size: 20px;
  }
  
  /* Add media query below */
  @media  (min-height: 800px)  {
    p {
      font-size:`10px;
    }
  }
</style>
  
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-principles/create-a-media-query


#2

You have two issues.

  1. You have a ` character before the 10px which should not be there.

  2. Your media query is attempting to set the font-size of p elements to 10px when the screen size is greater or equal to 800px instead of less than or equal to 800px.


#4

ya. anda benar :sweat_smile:

<style>
  p {
    font-size: 20px;
  }
  
  /* Add media query below */
  @media (max-height: 800px) {
    p {
      font-size: 10px;
    }
  }
</style>
  
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>

itu yang benar. nice to see you Randelldawson. i’m Tamam From Indonesia