On screen dimensions from a bazillion media queries. Display height and width accurately. Supports up to 4K resolution (3840x2160)
- Include the stylesheet
<link rel="stylesheet" href="https://jayholtslander.github.io/jays-css-px-counter/css/counter.min.css">
- create a span or a div on your page with the classes
.counter-w
for width andcounter-h
for height.
<p><span class="counter-w"></span> x <span class="counter-h"></span></p>