Comments on: Turning a Fixed-Size Object into a Responsive Element https://css-tricks.com/turning-a-fixed-size-object-into-a-responsive-element/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Tue, 12 May 2020 16:12:39 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Andrew https://css-tricks.com/turning-a-fixed-size-object-into-a-responsive-element/#comment-1756635 Tue, 12 May 2020 16:12:39 +0000 https://css-tricks.com/?p=308201#comment-1756635 The scale route has another advantage based on the implementation of the original library. The original pixel amounts are based on the dimensions of the devices in question in css pixels. This means that if you position an item of a specific size in the rendered device, it will have the same size relative to the rendered viewport as that element would have to the real thing. If you use Scale, this aspect is preserved

]]>
By: AR https://css-tricks.com/turning-a-fixed-size-object-into-a-responsive-element/#comment-1756606 Mon, 11 May 2020 20:17:35 +0000 https://css-tricks.com/?p=308201#comment-1756606 I used the px-em route with this library a few years ago but didn’t think of the possible accessibility implications. Good call out!

]]>
By: Corey https://css-tricks.com/turning-a-fixed-size-object-into-a-responsive-element/#comment-1756602 Mon, 11 May 2020 18:15:13 +0000 https://css-tricks.com/?p=308201#comment-1756602 Why not use an SVG for the phone frame? Would be trivial to use CSS to position the demo app “inside” the phone screen.

]]>