Sunteți pe pagina 1din 1

mediaquery

What you can do is, use javascript or css to detect the width of the screen.

Then with the detected results you use either your Desktop CSS or Mobile CSS.
That'll be the quickest way, obviously you will need to create a seperate CSS file
for mobile and construct it for mobile.

Here's how you can detect:

<link rel="stylesheet" media="only screen and (max-width: 600px)" href="mobile.css"


/>
<link rel="stylesheet" media="only screen and (min-width: 601px)"
href="desktop.css" />

S-ar putea să vă placă și