Curriculum
Course: CSS Advanced
Login

Curriculum

CSS Advanced

CSS Rounded Corners

0/1

CSS Border Images

0/1

CSS Color Keywords

0/1

CSS Text Effects

0/1

CSS 2D Transforms

0/1

CSS 3D Transforms

0/1

CSS Transitions

0/1

CSS Animations

0/1

CSS Tooltip

0/1

CSS Style Images

0/1

CSS Image Reflection

0/1

CSS Masking

0/1

CSS Buttons

0/1

CSS Multiple Columns

0/1

CSS User Interface

0/1

CSS Box Sizing

0/1

CSS Media Queries

0/1
Text lesson

CSS Flexbox

CSS Flexbox

Image

CSS Flexbox Layout Module

 

Prior to the Flexbox Layout module, there were four layout modes:

  • Block, primarily for sections in a webpage
  • Inline, mainly for text
  • Table, used for two-dimensional table data
  • Positioned, for explicit positioning of an element.

The Flexible Box Layout Module simplifies the creation of flexible, responsive layout structures without relying on float or positioning techniques.

Browser Support

Flexbox properties enjoy support across all modern browsers.

IMG_3715

Flexbox Elements

To initiate utilization of the Flexbox model, you must initially designate a flex container.

Image

The element depicted above denotes a flex container (indicated by the blue area) containing three flex items.

Example 

A flex container comprising three flex items.

<div class=”flex-container”>
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>