Center a 
Background

From Louis Filipe Companico <ip254743@ip.pt>, this IE-specific bit of CSS-via-JavaScript for centering and ‘watermarking’ a background image.

Insert this code into the “Beginning of Body” field of the “Layout HTML for your page:

<script language=”JavaScript1.2”>
<!-- Watermark Background image script -->
if(document.all)
document.body.style.cssText=”background:white url(image.jpg) no-repeat fixed center center”
</script>

Where “image.jpg” is the name of the background image - make sure that you either put in the full relative path to this image file,  or drag the image file into the same folder as the HTML page that this image will appear in, in the Publish View...

Go Back to Previous Page

Have a question that you can´t find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support