A repeatable and scalable image? Is it possible?
Okay here's the deal,
I have a banner graphic that I'd like to stretch 100% of the width
and
Repeat-y down the length of my site.
开发者_如何学PythonIs it possible to do both?
<html>
<body>
<div style="background: url(https://www.google.com/adsense/static/en_US/images/234x60.gif) repeat-y;background-size:100% auto;width:100%;height:100%;"></div>
</body>
</html>
Please view above code. You need to use 'background-size' to specify width of image to 100%.
精彩评论