Hello, I'm new to html. Is there any way to load a background image without it tiling.
Thanks.
Cheryl
Hello, I'm new to html. Is there any way to load a background image without it tiling.
Thanks.
Cheryl
Hello, I'm new to html. Is there any way to load a background image without it tiling.
Thanks.
Cheryl
Hi Cheryl,
yes it is. But it will only work in newer browsers:
IE 4 and up: works great
NS 4.x: with limitations (can only be left/top, not fixed)
NS 6.x: did not try it yet fully, but seems to work.
Just put this in your BODY-tag:
background-image should be self-explaining
background-repeat can be: "repeat-x", "repeat-y", "no-repeat" or "repeat"
background-attachment can be: "scroll" or "fixed"
background-position can be: "top", "center", "bottom", "left" or "right" or a combination of those.
Note, that this can also be applied to tables and table-cells.
For an example go to: www.kefir.at
Never mind that it's in german, but if you look at the source-code and search for "style" you should find it twice, once in the BODY-tag and once in a TD.
This will show you how to implement it and what it does ...
Wolfgang
Thank you for your reply and the link to the site.It was great. I have much to learn.
Cheryl
Bookmarks