HTML CSS examples for CSS Property:background-color
Background color for scrolling
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body > div:first-of-type { width: 970px; outline: 1px solid red; } body > div:last-of-type { width: 100%; height: 20px; background-color: gray; } @media screen and (max-width: 970px) { body > div:nth-of-type(2) { width: 970px; }<!--from w w w. jav a2s . com--> } </style> </head> <body> <div> Text area </div> <div></div> </body> </html>