CSS - Set 3

CSS Question & Answer Practice

CSS Practice – Questions & Answers

Beginner Level

Q31. Comment in CSS?
/* comment */
Q32. Default position?

static

Q33. Change cursor?
cursor: pointer;
Q34. Text align center?
text-align: center;
Q35. Uppercase text?
text-transform: uppercase;

Intermediate Level

Q36. Pseudo-class?

:hover, :active

Q37. Hover example.
a:hover { color: red; }
Q38. Opacity?
opacity: 0.5;
Q39. Shadow text?
text-shadow: 1px 1px #000;
Q40. Box shadow?
box-shadow: 0 2px 5px gray;

Advanced Level

Q41. What is transform?

Changes element shape.

Q42. Scale element.
transform: scale(1.2);
Q43. Rotate element.
transform: rotate(45deg);
Q44. Animation?

Adds motion.

Q45. Keyframes example.
@keyframes move {
  from { left:0; }
  to { left:100px; }
}

No comments:

Post a Comment