November 13, 200817 yr Ok ive created the background for a website i am doing. It is a sort of landscape scene with sky merging into a grass area etc. My issues is how do i set it as my background and then still have it able to expand and contract for different browser resolutions and also the page height etc. Any help much appreciated.
November 13, 200817 yr You can't, unless you're using Flash or something. CSS has no facility for resizing backgrounds on the fly.
November 14, 200817 yr The only way you can achieve this is to make the background image wider than the widest browser . . . In this way, you'll see the left hand side of the background in a smaller browser and increasingly more of the right hand side as the users resolution gets wider. It's also useful to make the image 'repeat' just in case you get someone with a truly massive wide-screen monitor.
November 14, 200817 yr Author http://www.wentwooddownhill.co.uk/mij.html It will be something like that. obviously all content etc has been removed.
November 14, 200817 yr Nice background, but on my screen it repeats itself Is there not a way to cut the centre of the image and have the centre as a repeating background image, thus leaving the sides static, so to speak?
November 14, 200817 yr http://css-tricks.com/how-to-resizeable-background-image/ This may be the answer to your problem
Create an account or sign in to comment