Live data from Hacker News

Single Element MacBook Pro with CSS

codepen.io

1–10 of 69 posts

Re: Single Element MacBook Pro with CSS

#4

While undoubtedly impressive, I think using css :before and :after kind of defeats the point of 'single element'

No it doesn't really, it keeps your HTML clean. Sure, there's better ways of getting a MacBook into your webpage, but this definitely shows the power of the :before and :after selectors.

Re: Single Element MacBook Pro with CSS

#5
post #4

While undoubtedly impressive, I think using css :before and :after kind of defeats the point of 'single element'

No it doesn't really, it keeps your HTML clean. Sure, there's better ways of getting a MacBook into your webpage, but this definitely shows the power of the :before and :after selectors.

It may keep your HTML clean, but it makes your CSS messy!

Re: Single Element MacBook Pro with CSS

#8
post #6

Does anyone else think the front is too wide for that perspective? My only criticism.

+1 the left and right should be -15px instead of -22 and the led light should be moved a bit to the left and it looks perfect imo.

Nonetheless, I find it quite ingenious! Bravo

Post reply on HN