Single Element MacBook Pro with CSS
codepen.io
Single Element MacBook Pro with CSS
1–10 of 69 posts
Re: Single Element MacBook Pro with CSS
#2Very cool. Not sure why I'd ever need this, but it's impressive that it can be done. Congratulations on making something awesome.
Re: Single Element MacBook Pro with CSS
#3While undoubtedly impressive, I think using css :before and :after kind of defeats the point of 'single element'
Re: Single Element MacBook Pro with CSS
#4While 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
#5While 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
#6Does anyone else think the front is too wide for that perspective? My only criticism.
Re: Single Element MacBook Pro with CSS
#7Does anyone else think the front is too wide for that perspective? My only criticism.
Were it a photo, that would only depend on the focal length of the lens i.e. a super-wide-angle lens could make the front even wider relative to the screen.
Re: Single Element MacBook Pro with CSS
#8Does 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
Re: Single Element MacBook Pro with CSS
#9Looks like it's probably even smaller than the equivalent SVG would be. Wish I had a use for it.
Re: Single Element MacBook Pro with CSS
#10http://codepen.io/anon/pen/vyHwk
one line difference and you have the non-glossy screen version.