This short tutorial shows how to create a CSS media query so that a web page's design responds to the size of the device viewing it. It uses a simple example of reducing font size on phones compared with laptops.
What you’ll learn
✓Create a CSS media query that changes styles based on screen width
✓Adjust font size so text suits smaller devices
✓Explain why responsive design adapts layouts to different devices