CSS Backgrounds
CSS Background's
Background
properties option's use to set different effects on HTML files.
·
Background-color used to put background
color of an element.
·
Background-image used to set background image
in background.
·
Background-position used to control and set position of background image.
·
Background-repeat used to control repetition
of image in background.
·
Background-attachment used to control scrolling of
an background image.
This all options used One by One for
practice.
<html>
<head>
<style>
body
{
background-image:
url("/css/images/css.jpg");
background-color: #cccccc;
background-repeat:
repeat;
background-position:100px;
background-attachment:
fixed;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
</body>
<html>
Comments
Post a Comment