PDA

View Full Version : HTML Background


rissac
12-18-2001, 11:19 AM
How do you stop a background image from repeating itself when you stretch the browser out? This is my alternative because when I put the background image in the table itself Netscape treats it funny but explorer treats the image fine.

Mark
12-21-2001, 07:13 PM
use this
============================================================
<html>

<head>
<title>No repeat background</title>
<style>
<!--
body { background-repeat: no-repeat }
-->
</style>
</head>

<body background="background.jpg" bgproperties="fixed">
content...
</body>
</html>
============================================================
* body { background-repeat: no-repeat } = the background image wont repeat
* bgproperties="fixed" = text will scroll and background doesnt move
a combination of both will work best ;)