I'm working on a website which will feature, one one page, a slideshow made in Adobe Edge (exported as a .js JavaScript file). I'm also using CSS media queries to resize various elements on the site, like <div>s and fonts based on screen resolution. What I'm thinking of doing for the slideshow is creating multiple versions at different resolutions; is it possible to use CSS media queries to subsequently select the appropriate version per screen resolution?
2 Answers
Define different sizes for different image resolution like so:
@media only screen and (min-width:768px) and (max-width:1009px)
Inside the media query you will define different values for different elements based on the screen resolution.
1 Comment
John Doe
I don't think you understand the question.
.jsfiles; for example,slideshow-1080.js,slideshow-720.js, and so on. I'm probably going to resort to a JavaScript variable, as recommended by Diodesus, but I still want to know if there's any way to do this using CSS, and possibly PHP.