How do you align items along the main axis?

Use the justify-content property to align items along the main axis. Common values include:

  • flex-start: Items align to the start of the container (default).
  • flex-end: Items align to the end of the container.
  • center: Items are centered.
  • space-between: Items are evenly distributed with space between them.
  • space-around: Items are evenly distributed with equal space around


How do you create a flex container?

To create a flex container, set the display property of an element to flex or inline-flex:


What are the main components of Flexbox?

The main components of Flexbox are:

  • Flex Container: The parent element that holds flex items. It is created by setting display: flex or display: inline-flex.
  • Flex Items: The child elements inside the flex container.
  • Main Axis: The primary axis along which flex items are laid out (horizontal by default).
  • Cross Axis: The axis perpendicular

What is CSS Flexbox?

CSS Flexbox (Flexible Box Layout) is a one-dimensional layout model that allows you to design flexible and responsive layouts. It provides an efficient way to align, distribute, and space items within a container, even when their sizes are unknown or dynamic.


Customize the Browser’s Scrollbar only with CSS

-webkit-scrollbar consists of seven different pseudo-elements, and together comprise a full scrollbar UI element:

  1. ::-webkit-scrollbar the background of the bar itself.
  2. ::-webkit-scrollbar-button the directional buttons on the scrollbar.
  3. ::-webkit-scrollbar-track the empty space “below” the progress bar.
  4. ::-webkit-scrollbar-track-piece the top-most layer of the the progress bar not covered by the thumb.
  5. ::-webkit-scrollbar-thumb the draggable scrolling element resizes depending on the size of

Fix iOS bug not displaying 100vh correctly

There are many Javascript fixes for the viewport height units bug in iOS 7 (iPhone & iPad), this article will cover how to resolve this bug with CSS. This particular bug affects the rendering of viewport height units, for example: if you try to make a full viewport height container


Pure CSS Page Loader in website

preloader or what some call a loading screen — is the what you see on some sites before the main content of the web page is loaded.

HTML


Create responsive websites with CSS3 media query

Responsive web design (RWD) is an approach whereby a designer creates a web page that “responds to” or resizes itself depending on the type of device it is being seen through. That could be an over-sized desktop computer monitor, a laptop or devices with small screens such as smartphones and