I'm feeling a bit confused about responsive web design. I understand that I can use media queries to apply different stylesheets based on specific screen sizes. For example, a screen at 600px will use one stylesheet while a larger screen will use a completely different one. The problem I'm encountering is that my layout doesn't change when resizing the window. It only displays correctly if it's reloaded at the correct size, but it doesn't dynamically adjust the layout as I resize.
What could be causing this issue?
This is how I have set up my stylesheets:
<link rel="stylesheet" href="/style.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/mobile.css" type="text/css" media="only screen and (max-device-width: 600px)" />