Background image is stretching

Posted by yaip on Stack Overflow See other posts from Stack Overflow or by yaip
Published on 2010-06-09T22:31:54Z Indexed on 2010/06/09 22:32 UTC
Read the original article Hit count: 149

Filed under:

I have a 40x1000 jpg file for my background. My CSS is as follows:

body { margin: 0px; padding:0 px; text-align: center; background-image: url(jute_for_web1.jpg) ; background-repeat: repeat-x; font: 11px Verdana, Geneva, Arial, Helvetica, sans-serif; border-top:0px; height:100%; width:100%; } div.container { text-align: left; border-color: Black; border-width: 0px; border-style: solid; width: 1000px; height: 768px; margin: 5px auto; background-color:White; }

This stretches my image. What am I doing wrong?

© Stack Overflow or respective owner

Related posts about css