The background as black color we should write the code as below
body
{
background-color=”black”;
}
In this way if we want to change background image it should be written as shown below
body
{
background-image=”child.jpg”;
}
In this way we can change background using following properties
top left;
top right;
center right;
center left;
center top;
center bottom;
bottom left;
bottom right;
x position,y position;
inherit: which specigies that the positions of x and y are inherited from the parent element;
Syntax: background position :< value>
value:% value [center|top|bottom][right|left|center]
appiles to:block level and replaced elements
The background property value gives the initial poison of background image.
For example the below code will explain the usage of background positioning using cascading style sheets.
body
{
background-color=”red”;
}
the example of the background color cascading style sheets
the usage is very lot of cascading style sheets when we use them as background
this is an example of cascading style sheets
we have different properties to be used
we can make web page as we want to change
this is the main usage of cascading style sheets
The above program will give the out put as like below
the example of background color using cascading style sheets
The example of body background color using cascading style sheets
the usage is very lot of cascading style sheets when we use them for background changing
This is an example of using cascading style sheets we have different properties to be used
we can make web pages as went to change
this is the main usage of cascading style sheets
The easiest way to assign background position is with keywords
Horizontal keywords ( left center right );
Vertical keywords ( top center bottom );
we can change the height and width of an image by mentioning them with values
If we give beyond the values it will lead to appear the image ugly
the background position will give the intial position of the image we can change that bye
using cascading style sheets
syntax: background-repeat;
The above syntax will be used to repeat the image as how many wants we want to change
now let me explain the above property with an example
body
{
background-repeat (“6”);
}
This is the main functionality of the background repeat which leads to repeat an image
6 times
now let me explain this by writing html code
the example of background repeat
the background repeat will permit us to repeat the background as how many wants to repeat as we want
This is very easy for CSS background-position you can just add the image to the background. Which types of image add you web page, you have to look at construct page of area and then put the image considering both horizontally and vertical.
we can make web page as we want to change
this is the main usage of cascading style sheets
The above program will give the out put as like below
the example of background color using cascading style sheets
The example of body background color using cascading style sheets
the usage is very lot of cascading style sheets when we use them for background changing
This is an example of using cascading style sheets we have different properties to be used
we can make web pages as went to change
this is the main usage of cascading style sheets
The easiest way to assign background position is with keywords
Horizontal keywords ( left center right );
Vertical keywords ( top center bottom );
we can change the height and width of an image by mentioning them with values
If we give beyond the values it will lead to appear the image ugly
the background position will give the intial position of the image we can change that bye
using cascading style sheets
syntax: background-repeat;
The above syntax will be used to repeat the image as how many wants we want to change
now let me explain the above property with an example
body
{
background-repeat (“6”);
}
This is the main functionality of the background repeat which leads to repeat an image
6 times
now let me explain this by writing html code
the background repeat will permit us to repeat the background as how many wants to repeat as we want
This is very easy for CSS background-position you can just add the image to the background. Which types of image add you web page, you have to look at construct page of area and then put the image considering both horizontally and vertical.
No comments:
Post a Comment