Live data from Hacker News

Single Element MacBook Pro with CSS

codepen.io

21–30 of 69 posts

Re: Single Element MacBook Pro with CSS

#21

It's been well established that you can achieve just about any icon purely with CSS. Why is this getting so many upvotes?

G'day, I'm the guy that made it. I agree with your comment completely, I had one pretty big constraint though; one element allowed. I'd like to think that is why it is getting upvoted.

Re: Single Element MacBook Pro with CSS

#27

It's been well established that you can achieve just about any icon purely with CSS. Why is this getting so many upvotes?

It's been well established that you can paint just about anything with oil paints. Why do people go to art museums?

Not sure that Hacker News is comparable to an art museum. But point taken.

Re: Single Element MacBook Pro with CSS

#28
post #21

It's been well established that you can achieve just about any icon purely with CSS. Why is this getting so many upvotes?

G'day, I'm the guy that made it. I agree with your comment completely, I had one pretty big constraint though; one element allowed. I'd like to think that is why it is getting upvoted.

Take it you're an Aussie. In which case, more power to you (I'm in Newcastle). Lovely icon.

Re: Single Element MacBook Pro with CSS

#29
post #5
post #4

Earlier quoted context omitted.

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!

I'd much rather have clean, reusable HTML. CSS you can use preprocessors to abstract away the messiness.
Post reply on HN