31 CSS Code Snippets To Make You A Better Coder
It is almost impossible to gather in an article all the CSS code snippets that could help you in the future but here are some of the ones that you would need more often than others. Don’t get scared by the length of some of these CSS hacks’s code cause they’re all easy to implement and where is the case, they’re well documented. Besides the ones that solve common and annoying problems there are also some that solve new issues brought by the new technologies. Comprehensive List of Browser-Specific CSS Hacks Cross browser coding can be sometimes tricky but these browser specific css hacks can help you with your problems. With them cross browser compatibility comes to you served on a plate. (source) Cross Browser Vertically and Horizontally Centered Images in CSS without Tables This centers an image of unknown size vertically and horizontally within a box. (source) Cross-Browser Transparency via CSS (source) CSS Box Shadow Outer shadow Inner shadow You can see a demo at Design Resource Box (source)
Related: HTML + CSS
• web dev.