Background help!

marmiea

New Member
Messages
2
Reaction score
0
Points
0
Sorry for my ignorance, but how do you set a background on a page?
Do you have to use HTML or can you just click an image and set it as a background? Where do I do this, and how?

Once again, sorry for my lack of skills.

Hope this is an ok place for this post,

marmiea
 

sunils

New Member
Messages
2,266
Reaction score
0
Points
0
Thats not a problem. But i think this is the wrong forum to post. You should have done it in the programming help forum.

And for your query, there are a variety of way to do it.
let me tell you the basic part alone........

<html>
<head>
<title>Give your title here</title>
</head>
<body background="put the path to the image file along with its name and extention">
</body>
</html>


Thats it.
 

marmiea

New Member
Messages
2
Reaction score
0
Points
0
Thanks it worked, but my layout is centered.

And my backgrounds not, how do i center my background?

Thanks!
 

xanthophobia

New Member
Messages
24
Reaction score
0
Points
0
You can also set the background with CSS:
HTML:
<style>
body {
    background-image: url(URL_HERE);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
</style>
You might not need "background-attachment: fixed;" which "fixes" the background image on the screen so that it stays in the same position regardless of if you scroll down.

You might not need "background-repeat: no-repeat;" which removes the tiling effect when you use small background images.
 
Top