BizTalk Utilities CV ,   Jobs ,   Code library  
 
 

The background-attachment property (CSS Reference)

Introduction

The background-attachment property is used to fix the image on the background. That means that whenever the user scrolls the page, only the page content will scroll not the image.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>background-attachment Demonstration</title>

<style type="text/css">

body

{

  background-image: url("http://topxml.com/images/topxml_site.gif");

  background-attachment: fixed;

}

</style>

</head>

<body>

<h1>This is some text!</h1>

<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>

<h1>Note that the image does not scroll!</h1>

<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>

<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>

<h1>This is some other text!</h1>

</body>

</html>

Output

Values

Name:

Description:

fixed

This value is used to fix the value. It will not scroll when the content/text is scrolled.

scroll

This value can be used to allow the image to scroll along with the content/text.

 

Recent Jobs

Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C
Sr. Software Engineer

View all Jobs (Add yours)
View all CV (Add yours)



conference calls
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses
conference call service


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP