Back
Q1. How to set an image in background?
Ans. The background image for a page can be set like this.
Example: body{
background-image:url('lion');
}
Q2. What is an image-repeat-effect?
Ans.The background-image property reports and image both horizontally and vertically by default. If the image is repeated only one direction, the background will look better.
Example: body{
background-image:url('nature.png');
background-repeat:repeat-x;
}
Q3. What is use of background position effect?
Ans: Background-position effect is that when using a background image use an image that does not disturb the text.
Example: body{
background-image:url('nature.png');
background-repeat:no-repeat;
background-position:right top;
}
Q4. What is a background shorthand property?
Ans: The shorthand property for background is simply "background".
Example: body{
background:#ffffff url('nature.png') no-repeat right top
}
Q5. What is text transformation?
Ans:The text-transform property is used to specify uppercase and lowercase letters, or capitalize the first letter of each word.
Example: p.uppercase{text-transform:uppercase;}
p.lowercase{text-transform:lowercase;}
p.capitalize{text-transform:capitalize;}
Q1. How to set an image in background?
Ans. The background image for a page can be set like this.
Example: body{
background-image:url('lion');
}
Q2. What is an image-repeat-effect?
Ans.The background-image property reports and image both horizontally and vertically by default. If the image is repeated only one direction, the background will look better.
Example: body{
background-image:url('nature.png');
background-repeat:repeat-x;
}
Q3. What is use of background position effect?
Ans: Background-position effect is that when using a background image use an image that does not disturb the text.
Example: body{
background-image:url('nature.png');
background-repeat:no-repeat;
background-position:right top;
}
Q4. What is a background shorthand property?
Ans: The shorthand property for background is simply "background".
Example: body{
background:#ffffff url('nature.png') no-repeat right top
}
Q5. What is text transformation?
Ans:The text-transform property is used to specify uppercase and lowercase letters, or capitalize the first letter of each word.
Example: p.uppercase{text-transform:uppercase;}
p.lowercase{text-transform:lowercase;}
p.capitalize{text-transform:capitalize;}
No comments:
Post a Comment