April 17, 2009

0 CSS BACKGROUND

THE CSS background properties define the background effects of an element.

EXAMPLES:
This tutorials shows how to set the background color for an element.

<html>
<head>
<style type= "text/css">
body {background-color: yellow}
h1 {background-color: #00ff010}
h2 {background-color: transparent}
p{background-color: rgb(250,0,255)}
</style>
</head>
<body>
<h1> this is a header 1 </h1>
<h2> this is a header 2 </h2>
<h3> this is a header 3 </h3>
</body>
</html>

Set an Image as Background

<style type="text/css">
body
{
background-Image:
url( 'bgdesert.jpg' )
}
</style>



0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger