JSFiddle - React, Tailwind, and code Playground

by tonkec palonkec

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        background-color: skyblue;
        width: 100px;
        height: 100px;
      }

      @media only screen and (min-width: 480px) {
        div {
          width: 150px;
        }
      }

      @media only screen and (min-width: 768px) {
        div {
          width: 200px;
        }
      }

      @media only screen and (min-width: 998px) {
        div {
          width: 300px;
        }
      }

      @media only screen and (min-width: 1200px) {
        div {
          width: 400px;
        }
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>