Check out example codes for "css responsive". It will help you in understanding the concepts better.

Code Example 1

@media only screen and (max-width: 600px) {
  body {
	background-color: lightgrey;

Code Example 2

@media all and (max-width: 699px) and (min-width: 520px) {
   ul li a {
    padding-left: 21px;
    background: url(../images/email.png) left center no-repeat;

Code Example 3

<div id="gallery">
            <div class="showcase-images">
                <div class="showcase-block">
            <img id="show-img" src="images/showcase/tabs.png" alt="Tabs">
            <ul id="main">
                <li id="tabs"><a href="#">Tab</a></li>
                <li id="login"><a href="#">Login</a></li>
                <li id="forum"><a href="#">Forum</a></li>

Code Example 4

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Learn ReactJs, React Native from