4 ms·
I have never used any reset.css file (I'm more of a backend developer), but I find this idea very interesting. Is this reset technique often used in modern web
by sunseb 13y ago
I have never used any reset.css file (I'm more of a backend developer), but I find this idea very interesting. Is this reset technique often used in modern web development ? Any feedback on this ?
- hackNightly 13y ago"Professional" web developer here. Indeed the reset technique is used very often. Browsers often implement default margins and padding differently. A CSS reset can give you a more reasonable baseline to work with.
- Achshar 13y agoThese browsers usually have reasons to have their own styles. Sometimes they are there to be consistent with the base OS (drop downs, buttons, etc) or they are there to best suit the format that the browser runs on small screen (phones), large screen (desktop) etc or to take care of device input types (touch screen devices would have larger buttons by default whereas pointing device doesn't need to have large buttons). I think it's best to let the browser decide what it wants to decide and build our app around browser differences instead of forcing our own design down browser's throat.
- ttty 13y agoI think the problem is manly IE vs Chrome vs Firefox.. (and of course Opera). Example: Why would you want to have by default a padding of 10px in IE, a padding of 5px in Chrome, 7px in Firefox and 0px in Opera? Of course is easier to make a default for all those browsers to 0px or whatever you want.
- shangxiao 13y agoAnytime someone uses Bootstrap then the css is reset
- bigbugbag 13y agoDifferent browsers have different default values, a css reset is there to remove those inconsistencies allowing a fresh and sane starting point. check this page for more info and an example of a css reset: http://meyerweb.com/eric/tools/css/reset/ http://meyerweb.com/eric/tools/css/reset/