* { box-sizing: border-box } FTW by Paul Irish
One of my least favorite parts about layout with CSS is the relationship of width and padding. You’re busy defining widths to match your grid or general column proportions, then down the line you start to add in text, which necessitates defining padding for those boxes. And ‘lo and behold, you now are subtracting pixels from your original width so the box doesn’t expand.
* { box-sizing: border-box } FTW by Paul Irish
IE 6+7 box-sizing polyfill add-on
Related posts:
- How to create slick effects with CSS3 box-shadow – RedTeamDesign
- CSS Border Radius Generator
- CSS3 Image Styles with jQuery
Tags: CSS3
Leave a comment
Cool Themes & Tutorials
Twitter @rvdpol79
- New reading material, nice! #abookapart http://t.co/4hoBb7f6 6 days ago
- NICE! HTML9, why use 5 if you can use 9?! :-P http://t.co/kcIwhqF4 1 week ago
- Hmmmm, in need of a html5, css3, responsive showcase. it's time to finally make a custom blog theme. 1 week ago
- More updates...



Posted under: 



