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.

Pure CSS Twitter Fail Whale

93 pointsby jakartaalmost 15 years ago

7 comments

alain94040almost 15 years ago
From the article:<p><i>... stranger angles (such as the strings) are masked using containers with overflow: hidden</i><p>Hum, am I the only one who wonders why we have to reinvent, in 2010, a graphics language, and everyone seems to think it's cool?<p>Even on the Apple II you didn't to do such ugly hacks. Why now?
评论 #1428943 未加载
moron4hirealmost 15 years ago
If I cut down a 50 foot tall tree with a swiss army knife, it would not be a testament to the "power" of the knife, it would be a testament to my own stupidity.
评论 #1429493 未加载
评论 #1429919 未加载
评论 #1429877 未加载
评论 #1430327 未加载
Subcidealmost 15 years ago
The HTML/CSS all up is about 34kb, but could be a lot less if minified, and the CSS was made for ease of drawing over optimization :) You could get a PNG down to less than 10kb easily (but of course, that was hardly the point hehe). Cheers for the comments guys!
kwamenum86almost 15 years ago
A very clever hack. I wonder how much total memory is used versus the image-based version? A couple potential disadvantages: more http requests and more dom nodes. But I'm guessing the author did this just because they could, not as a demonstration of how things should be done.
评论 #1428769 未加载
Groxxalmost 15 years ago
Awww, if you scale it up it gets horizontal gaps in the whale :'(<p>Other than that, very nice job. Wonder if Twitter would use it.
评论 #1428993 未加载
wushuporkalmost 15 years ago
I think if I did this using purely tables and background colors, I'd probably get tons of down votes. Just saying.
trezoralmost 15 years ago
Works neatly in Firefox and even better in Chrome, but fails horribly on my iPhone. Might just be due to the small screensize but I haven't tested that properly yet.<p>Impressive none the less.
评论 #1429065 未加载