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
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.
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
body {
background-image: url(finish.jpg);
background-repeat: no-repeat;
background-position: center;
}
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.