CSS interview Question/ Answers Set – 7

CSS interview Question/ Answers Set – 7

Translate is a CSS transform value. On changing opacity or transform, browser reflow or repaint is not triggered. Transform requires the browser to create a GPU layer for elements but using the CPU changes absolutes positioning properties. Translate () is more efficient and results in shorter paint times. On using translate (), element occupies original space, unlike in changing absolute positioning.
The clear property along with floats is used for specifying which side of floating elements is not supposed to float. An element having clear property ensures that the element does not move up adjacent to the float. But the element will be moved down past the float.
CSS frameworks are the preplanned libraries which make easy and more standard compliant web page styling. The frequently used CSS frameworks are: -
  • Bootstrap: Bootstrap is the most popular CSS framework for developing responsive and mobile-first websites. Bootstrap 4 is the newest version of Bootstrap
  • Foundation : Foundation is a responsive front-end framework. Foundation provides a responsive grid and HTML and CSS UI components, templates, and code snippets, including typography, forms, buttons, navigation and other interface elements, as well as optional functionality provided by JavaScript extensions.
  • Semantic UI: Semantic UI is a modern front-end development framework, powered by LESS(CSS- preprocessor) and jQuery. It has a sleek, subtle, and flat design look that provides a lightweight user experience.
  • Ulkit:UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
If a web page has a large number of images that take a longer time to load because each image separately sends out an HTTP request. The concept of CSS sprites is used to reduce the loading time for a web page because it combines the various small images into one image. It reduces the number of HTTP requests and hence the loading time.

Post Your Comments & Reviews

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

*

*