Log in

View Full Version : Can't think



Freeman
01-31-2006, 06:03 PM
What is the script for the no repeat of an image background.
<body background="finished.jpg"> where does the no-repeat go or do I use that?

sleipner
01-31-2006, 06:25 PM
try searching for it, think I saw it in CSS

Twey
01-31-2006, 06:47 PM
Don't use the background attribute.

body {
background-image: url(finish.jpg);
background-repeat: no-repeat;
}

Freeman
02-01-2006, 03:03 PM
when I put that in all I see in the page is the line of text. Im assuming that I did something wrong cause it should work.

Twey
02-01-2006, 04:01 PM
Yes, you'll want to put that inside a style tag in the head; for example,
<head>
<title>My Page</title>
<style type="text/css">
body {
background-image: url(finish.jpg);
background-repeat: no-repeat;
}
</style>
</head>

Freeman
02-01-2006, 04:18 PM
And the last question. How do you format it to the center of the page? Thanks for the help, JF

Twey
02-01-2006, 06:08 PM
body {
background-image: url(finish.jpg);
background-repeat: no-repeat;
background-position: center;
}