In case you’re searching for CSS Interview Questions and answers for Experienced or Freshers, you are at the correct place. GangBoard offers Advanced CSS Interview Questions and Answers that assist you in splitting your CSS Interview and procure dream vocation as CSS Developer.
Q1) What is Z- Index ?
Answer: It expresses the vertical order of element.
Q2) What is position: Relative?
Answer: If the element has position as relative that places the element from current position.
Q3) What is position : Absolute?
Answer: If the element has position as absolute that will place the element depends upon it’s nearest parent element.
Q4) What is Inline element ?
Answer: It has no line break and we can’t set height and width of the element.
Q5) What is block element?
Answer: Line break will be there for block element and we can set height and width of the element.
Q6) What is Inline – Block element ?
Answer: It has no line break and we can set height and width of the element.
Q7) What will visibility:hidden do ?
Answer: Element will be hidden but it will add space in UI.
Q8) What will Display: none do ?
Answer: Element will be hidden and it won’t add space in UI.
Q9) What is Float ?
If we used float then that element will be floated in that particular direction .
If we used float : left , then text will be floated left .
Q10) What is the use of clear ?
If we used clear then that element could not be floated in that particular direction.
If we used clear : left , then text wont be floated in left.
Q11) What is the use of Max – width ?
Answer: If we used width and we are resizing the browser to the smaller size , then Scrollbar will be added .To overcome this , we are using max- width.
Q12) What will overflow : auto do ?
Answer: If the scroll bar is needed , then it will add scroll bar.
Q13) What is Box- Sizing ?
Answer: It allows us to include the padding and border in element total width and height.
Q14) What will overflow : scroll do?
Answer: It will add scroll bar in both sides, whether the scroll bar is needed or not.
Q15) What are available in CSS Box Model ?
Answer: It consist of padding , Border , margin and content .
Q16) what are different types of styles in CSS?
Answer: Inline , Embedded and External styles
Q17)What are the different types of CSS selectors?
- ID Selector
- Class Selector
- Element Selector
- Group Selector
Q18) What is Media Query?
Answer: Media Query are used to design webpages based on device general type and special parameters ( screen width ).