243 points · by michaelkscott · 14y ago · 65 comments
That's when you realise this technique is a bit flawed - you can't actually scale the element and keep the detail, you'd be better off with an image. Not to take anything away from it though. It's good work.
This technique, on the other hand, using the :before and :after selectors shows the right way to use CSS3 image composition, if you choose to do it. This example should be shouted from the hilltops to all front-end web devs.
(not to be a downer, it's incredibly impressive, but not something you should do in production code)
Drawing in CSS like this isn't as simple as dropping jQuery on the page.
If there was a jQuery plugin to automate this process from image to css, then we should worry!
one line difference and you have the non-glossy screen version.
Missed a spot! This is true non-glossy.
You can also keep your kitchen clean by stuffing all the dirty stuff into the cupboards.
Add: text-align: center; line-height: 100px;
to the .macbook css, so you can add text to the screen ;)
Nonetheless, I find it quite ingenious! Bravo