Of course, this example has a statement under the head tag: <meta name="viewport" content="width=device-width, initial-scale=1">. Then the style section later has @media screen and (max-width: 500px) followed by:
{#outer div {width: 40%; min-width: 160px; height: 400px; overflow-y: auto; overflow-x: hidden; Overflow auto means the scroll bar appears only if needed; hidden means it doesn't appear. Finally, there is #inner1 {display: none;}, which tells the light-green area not to appear.
The content of this area is identified as "class small3", and its display is "block". The content, this text, does not appear on wide screens because the styling for screens wider than 500 pixels has the statement .small3 {display: none;}.
The HTML code in the content area for using the style information is:
<div id= "container1">
<h1>Justify-content Property</h1>
<div id= "outer">
<div id= "inner1"></div>
<div id= "inner2">
Text in the khaki box
<div id= "inner3"><p class= "small3">
Text in the light blue box on narrow screen