[–] alexobenauer 14y ago ↗ How is this better than "background-size: cover;"?Example: http://css-tricks.com/perfect-full-page-background-image/ [–] jonobird 14y ago ↗ Because 'background-size: cover; only works with IE9+'. This example is not supposed to be best practice or most preferred practice, it is meant to educate people and give an alternative to the one everybody already knows :) [–] alexobenauer 14y ago ↗ That's not true; you use:-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; [–] [dead] jonobird 14y ago ↗ Still only works in IE9+...
[–] jonobird 14y ago ↗ Because 'background-size: cover; only works with IE9+'. This example is not supposed to be best practice or most preferred practice, it is meant to educate people and give an alternative to the one everybody already knows :) [–] alexobenauer 14y ago ↗ That's not true; you use:-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; [–] [dead] jonobird 14y ago ↗ Still only works in IE9+...
[–] alexobenauer 14y ago ↗ That's not true; you use:-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; [–] [dead] jonobird 14y ago ↗ Still only works in IE9+...
4 comments
[ 2.4 ms ] story [ 16.7 ms ] threadExample: http://css-tricks.com/perfect-full-page-background-image/
-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;