I have a website that has 4 separate versions for different size screens. Pretty grim even if it's bad to be different!
I have now finished programming my first site but there's some work to go before it's responsive.
Until the site is responsive what I want to do is have a css file that uses @media to detect a screen size and then redirect/load from the appropriate folder.
i.e
@media only screen and (min-width: 480px) {
open file: /directory/file.html;
}
Thanks for your reply. It's states the obvious, which I didn't think of.
I used the javascript that you gave in my old website but I had this on every html page.
I read somewhere that this slows down the download times as cache isn't used. Thus begun my turbulant voyage of learning to program my own site.
What I have just found out is that what I should have done was put the javascript in a separate file and linked to it from the html file. That makes life so much easier!
Bookmarks