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!
Single Element MacBook Pro with CSS
11–20 of 69 posts
Re: Single Element MacBook Pro with CSS
#12That'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.
Re: Single Element MacBook Pro with CSS
#13Re: Single Element MacBook Pro with CSS
#14Re: Single Element MacBook Pro with CSS
#15While undoubtedly impressive, I think using css :before and :after kind of defeats the point of 'single element'
Re: Single Element MacBook Pro with CSS
#16Does anyone else think the front is too wide for that perspective? My only criticism.
Re: Single Element MacBook Pro with CSS
#17Does anyone else think the front is too wide for that perspective? My only criticism.
I simply eyeballed an image rather than working to scale. As it is just an experiment, I'm not too fussed by the incorrect dimensions.
Re: Single Element MacBook Pro with CSS
#18Earlier quoted context omitted.
I simply eyeballed an image rather than working to scale. As it is just an experiment, I'm not too fussed by the incorrect dimensions.
Dw, I think its brilliant and I upvoted. The perspective just gets to me is all :)
Re: Single Element MacBook Pro with CSS
#19http://codepen.io/anon/pen/vyHwk one line difference and you have the non-glossy screen version.