Choose Daily Web Design Resources

Your Source for Web Design Resources

How to Detect Screen Size and apply a CSS Style

Detect Screen Size and apply CSS

Detect Screen Size and apply CSS

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.

Choose It

Choose It

VN:F [1.7.2_963]
Rating: 10.0/10 (1 vote cast)

Leave a Response

Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.