Font-Family Color: Tahoma
Font-Family Color: Tahoma
.capitalize {
text-transform: capitalize;
}
5. How to strike, under line,over line for a text using css give example?
.overline {
text-decoration: overline;
}
.strike {
text-decoration: line-through;
}
.underline {
text-decoration: underline;
}
6. How to give indent for a text using css, give example?
p{
text-indent: 50px;
}
7. How to align text justify,center,left,right using css, give example?
h1 {
text-align: center;
}
p.date {
text-align: right;
}
p.main {
text-align: justify;
}
8. How to change list icons(Bullets,Romans,Alphabets) using css give example?
ul.a {
list-style-type: circle;
}
ul.b {
list-style-type: square;
}
ol.c {
list-style-type: upper-roman;
}
ol.d {
list-style-type: lower-alpha;
}
9. How to change table alternate row color using css give one example?
tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}
10. Write a css class to apply border color with 3D outset border for a div?
.div{
border-style: outset;
border-width: 5px;
}
</body>
</html
13. Explain about @media rule in css and give one example?
@media screen {
p{
font-family: verdana, sans-serif;
font-size: 17px;
}
}
@media print {
p{
font-family: georgia, serif;
font-size: 14px;
color: blue;
}
}
@media tv {
p{
font-family: georgia, serif;
font-size: 14px;
color: blue;
}
}
14. Explain about Attribute selectors in css,you have some ‘a’ tags,some tags have
attribute ‘target’ then write css to change background color of Anchor tags which
have ‘target’ attribute , no need to change remaining tags?
<!DOCTYPE html>
<html>
<head>
<style>
a[target] {
background-color: yellow;
}
</style>
</head>
<body>
<a href="http://www.w3schools.com">w3schools.com</a>
<a href="http://www.disney.com" target="_blank">disney.com</a>
<a href="http://www.wikipedia.org" target="_top">wikipedia.org</a>
</body>
</html>
15. How to change normal textbox to round corner textbox using css?
#rcorners1 {
border-radius: 25px;
background: #8AC007;
padding: 20px;
width: 200px;
height: 150px;
}
16. Apply border radius for a html element with image as shown in figure below.(use
border-image property)
#borderimg3 {
border: 10px solid transparent;
padding: 15px;
-webkit-border-image: url(border.png) 40% round; /* Safari 3.1-5 */
-o-border-image: url(border.png) 40% round; /* Opera 11-12.1 */
border-image: url(border.png) 40% round;
width:27.5%;
}
17. Apply border radius for a html element with image as shown in figure below.(use
border-image property)
18. How to apply multiple background images for a from as shown in figure below?
19. Create box with gradient colors using css as shown in figure below(colors
involved: red,blue, green)?
20. Create box with gradient colors using css as shown in figure below (colors
involved: red,orange,yellow,green,blue,indigo,violet)?
div.test {
white-space: nowrap;
width: 200px;
overflow: hidden;
border: 1px solid #000000;
text-overflow:ellipsis;
}
div.test {
white-space: nowrap;
width: 200px;
overflow: hidden;
border: 1px solid #000000;
text-overflow:clip ;
}
25. How to apply drop cap for a paragraph by using CSS as shown in figure below
(you need to change design from figure1 from to figure2)?
26. How to use the property Z-index in css give one example?
27. How to use the property Clip in css with simple example?
28. Can you use multiple css classes for a single element give example?