Output a function on if screen width is smaller than x
-
On the index page of my site I display a gallery of featured images in three columns. Although I do have these images set as scalable, they do not display well on small mobile devices. I would like to be able to incorporate a bit of code that will output one function (that will simply display text links to each post instead of featured images) for a screen width of under 500px and another function (with my three-column gallery) for larger screens. Is such a thing possible? I cannot determine how to get the results I desire using merely CSS.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Output a function on if screen width is smaller than x’ is closed to new replies.