BizTalk Utilities CV ,   Jobs ,   Code library  
 
 

The background-repeat property (CSS Reference)

Introduction

The background-repeat property is used in conjunction with the background-image to set the set whether the image should be repeated or not. If it is repeated then you can set it either to horizontal or vertical. The following example demonstrates the usage.

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-repeat Demonstration</title>

<style type="text/css">

body

{

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

            background-repeat: no-repeat;

            background-position: center;

}

.imgOnX{

            background-image: url(yellow_black.jpg);

            background-repeat: repeat-x;

}

.imgOnY{

            background-image: url(yellow_black.jpg);

            background-repeat: repeat-Y;

}

</style>

</head>

<body>

<h1><p class="imgOnX">The image should appear on X-Axis</p></h1>

<h1><p class="imgOnY">The image should<br/> appear on Y-Axis</p></h1>

</body>

</html>

Output

Values

Name:

Description:

no-repeat

The image will not be repeated.

repeat

The image will be repeated.

repeat-x

The image is only repeated on the x-axis.

repeat-y

The image is only repeated in the y-axis.

 

Recent Jobs

An immediate job opportunity as a B
Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C

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



answering service
online faxing
swimming pool builder
online fax
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    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