Detect Screen Size & Apply CSS


/ Published in: CSS
Save to your folder(s)

I needed today to format the content differently according to the screen resolution of the user. So I thought that just by detecting the screen width using the screen.width property, I could change the stylesheet using jQuery. And so it was. Check the example and continue reading.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.