Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chillybean
· 8y ago · 0 comments
Very cool. How did you scale device borders relatively?
Comments
[–]
osrec
8y ago
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!