Stretch-fit Background
Usage:
Somewhere in your script, add:
<img src="LINK TO BACKGROUND" class="bg-sf">
css:
img.bg-sf {width: 100%; height: 100%; left: 0px; top: 0px; position: fixed; z-index: -1;}
Written by Mahmoud El Ghandour
Related protips
1 Response
I prefer this one ;)
bg-sf {background-image: url(LINK TO BACKGROUND); background-size: cover;}
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css3
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#