I'm struggling to grasp the correct CSS syntax for scaling or expanding an image.
Despite trying multiple approaches, I can't seem to get it to function properly.
The current code in use is:
background:url(../images/body_bg1.jpg) fixed repeat-y; width:100%; height:100%;}
With the aforementioned code, the image is currently being tiled across the left side of the page when using repeat-y
. When this property is omitted, the tiling occurs across the top of the page.
According to my research, the syntax above should allow me to have a fixed and stretched image. Am I overlooking something here?
Additionally, is it acceptable to format the code as shown below for better readability?
background:url(../images/body_bg1.jpg) fixed repeat-y;
width:100%;
height:100%;}