I am currently working on my first website and I am striving to develop a responsive layout. Below is the HTML code I have implemented:
<link href="css/web_desktop.css" rel="stylesheet"
type="text/css" media="screen and (min-width:481px)" />
<link href="css/web_mobile.css" rel="stylesheet"
type="text/css" media="screen and (max-width:480px)" />
While this layout functions well when viewed on my laptop by resizing the browser, it fails to work properly when accessed on my iPhone after uploading it. I attempted to move the code into my web_mobile.css file as shown below:
@media screen and (max-device-width: 480px) { }
Unfortunately, even after this adjustment, the issue persists.
I am seeking suggestions from you all. Can multiple CSS media queries be utilized? Your insights would be greatly appreciated.