Displaying Background Static Image in websites
We can give good look to our sites by placing a stationary image as background. This can be done by adding attributes to HTML body tag.Stationary image remain in one place even when scrolling through the page. Only the text will move. We can implement this effect by placing the code below within <BODY> tag.
<body background =”imagename.gif” bgproperties=”fixed”>
While using this effect, we have to use the image which is suitable for our site. It should not make us text invisible. To prevent background image from tiling (repeating), we can place the following code between your <HEAD> and </HEAD> tags.
<STYLE TYPE=”text/css”>
<!–
BODY { background-image: url(imagename.jpg) }
BODY { background-repeat: no-repeat }
BODY { background-position: center }
–>
</STYLE>
