6 ms·
from the article: "I then gave the box element a padding-bottom in percent, calculated by dividing the image’s intrinsic height by its width, in this case 37 by
by usaphp 11y ago
from the article: "I then gave the box element a padding-bottom in percent, calculated by dividing the image’s intrinsic height by its width, in this case 37 by 992 pixels"
What the hell is that? if somebody recommends me doing that he obviously is not that good with CSS.
Also how is support for IE8 is even relevant? It's a 7 year old browser.
- robocat 11y ago> Also how is support for IE8 is even relevant? Ten employee business, 5% of clients today on IE8. We have fewer users on Firefox, so we should do support for that too... And we might as well stop supporting our Android users too. Generally we drop support when user stats drop below 1%. Even that can cause a lot of trouble for our client businesses (we don't want to be hated for making them change, regardless of how impatient we are for them to do so, or how insecure they are for not doing so).
- usaphp 11y agoIf a customer is still using IE8 I am positive that he will be OK with not seeing a box shadow on an element, and making 95% of other clients suffer and download images for generating box shadow is just plain stupid for me. I would either ditch those 5% of clients and focus on better features than spending lots of time on restraining cool functionality in order to satisfy a 5% of users on IE8
- BinaryIdiot 11y ago> making 95% of other clients suffer and download images for generating box shadow is just plain stupid for me. The images are likely a few hundred bytes if you do it right. Regardless this is an old article you dug up just to attack the guy; OBVIOUSLY it's far less relevant today than it was when it was originally written.