CSS interview Question/ Answers Set – 10

CSS interview Question/ Answers Set – 10

CSS has two types of lengths. Relative length and absolute length. Different units are used for them.
It is a property of CSS which allows you to display a smooth transformation between two or more than two specified colors. There are two types of gradients that are present in CSS. They are:
  • Linear Gradient
  • Radial Gradient
As images being inline elements are treated same as texts, so there is a gap left, which can be removed by:
img { display: block ; }
The main difference between relative and absolute is that “relative” is used for the same tag in CSS and it means that if we write the left:10px then the padding will shift to 10px in the left while absolute is totally relative to the non-static parent. It means, if we write left:10px then the result will be 10px far from the left edge of the parent element.

Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

*

*