DEV Community

Discussion on: ⚠️ Don't try this at home: CSS-only image detail zoom - As hacky as possible! 🖼️🔍

Collapse
 
mangoman profile image
Nauman Khan

Why type "border: 0 none;"? We should get the same result if we don't type this.

Collapse
 
thormeier profile image
Pascal Thormeier

border: 0 none removes the default border some browsers give inputs. It's just to make sure that the image has no unwanted border around it, so mostly a cosmetic thing. Does that answer your question?

Collapse
 
mangoman profile image
Nauman Khan

Yes, maybe I haven't witnessed a browser with default border yet. So...