Re:Show HN: ResponsiveDevices.css – responsive device frames...
by chillybean on Thursday August 09, 2018 @08:02AM
(#17723387)
Very cool. How did you scale device borders relatively?
[ Parent
| on HN ]
Re:Show HN: ResponsiveDevices.css – responsive device frames...
by osrec on Thursday August 09, 2018 @08:05AM
(#17723415)
The borders are not really borders, but a slightly larger element (scaled by a relative percentage) layered under the element we want to add a border to. That way, as the device scales up or down, the "border" also appears to scale!