/ Published in: CSS
what could be placed in the * {} inorder to solve a few common issues
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
* { /* apply a natural box layout model to all elements */ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; /* most images dont want to be repeated */ background-repeat: no-repeat; /* make positioning and element nudging work - remove for ie6*/ position: relative; /* for icons etc */ vertical-align: middle; /* make everything a little more fun */ -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; /* because all browsers set their own default */ margin:0; padding:0; }