TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tell HN: Peter Cooper's genius mobile-phone background image hack

2 pointsby damirabout 3 years ago
You&#x27;ve heard about Peter Cooper, right? The guy running various programming language newsletters (rubyweekly, javascriptweekly, etc.)<p>Well, I&#x27;ve been trying to &quot;knock off&quot; his style of landing page for the longest time - responsive cell-phone image as a background with responsive iframe inside, but never could get the background cell-phone to behave just right. (yeah, my CSS-fu isn&#x27;t the strongest, I know...)<p>Until now...<p>What I just realized, after god know how many years, is his mobile-phone background images aren&#x27;t images at all...<p>They&#x27;re made with CSS!<p>Peter, if you&#x27;re reading this, my hat&#x27;s off to you! Your &quot;hack&quot; just made my day! Thank you.

2 comments

tobinfekkesabout 3 years ago
Maybe I&#x27;m missing something (it&#x27;s late), but it shouldn&#x27;t take years to figure out it&#x27;s not an iframe or image, given the inspector&#x2F;console is in every browser, right?
mstipeticabout 3 years ago
You might as well post the website link here if it&#x27;s that good
评论 #31132603 未加载