I am fairly new to dreamweaver and even newer to CSS.
Basically I have a fairly simple website that I'm working on... currently the background is an image thats 2000X1500 (widthxheight)
Now on my 24" mac screen it looks great and fits the browser window perfectly but on a smaller screen or on PCs it looks terrible.
I really need to find a way with HTML or CSS that I can adjust the size of the background image to the size of the users' browser window or resolution... I am happy to loose a bit off the right hand side (with the image aligned left) in order to maintain the aspect ratio
Having had a look at that link you posted swapping between 2 different sizes of background image depending on browser window size sounds like something that could definately work for me... the only thing is how do I incorporate that into my code?
PS. I'm not entirely sure what you mean by sliced. if that means that I am happy to lose a bit of the image from one edge (top, bottom, left, right) then yes I am happy for that to happen
I mean cut apart, making 'slices' of the image to fit the layout. I guess it depends on the nature and use of the background image. It it's just 'eye candy' then you may not want it cut up. If the bg image is part of the layout, it might be better to slice it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
the background image is purely decorative but the site is so minimal that the background image has to look good... and its quite an abstract image so i really need the majority of it to display, no matter what the browser size/resolution.
the link you posted before looked like it could help me but I just don't know how to implement the coding into my site!
thanks again
« Reply to Help needed with scaling a background image to fit browser/resolution