RWD Media Queries
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> /* Mobile-first: base styles are for small screens */ .nav { display: flex; flex-direction: column; } @media (min-width: 768px) { .nav { flex-direction: row; } } @media (min-width: 1200px) { .nav { justify-content: space-between; } } </style> </head> <body> </body> </html>