Log in

View Full Version : Quick Questions, help is appreciated thanks



shapeforfun
01-18-2006, 04:11 AM
I have a question... know how to put a image as a background for my webpage, but it just keeps repeating the image... the image is about half the size of the page, but i want it to be only shown once not to repeat, how do i do that.

and what type of position html should i use to position images whenever i want them on my page to coordinate with the background and still line up for all resolutions?

any help i would appreciate

jscheuer1
01-18-2006, 06:10 AM
"Still line up for all resolutions" cannot be done with background and foreground images unless both are absolutely positioned. However, if you do that, they will appear out of line with other content on the page unless all of it is also absolutely positioned, a very bad idea. You need to learn to let go and let the page do what it will. Design with that kind of freedom in mind and you can have some very nice pages. To prevent a background image from tiling, set it and its attachment using style (here is the shorthand method):


<style type="text/css">
body {
background:url('some.jpg') no-repeat;
}
</style>