Learn CSS daily

flex
.container { display: flex; } .item { flex: 1; }

The 'flex' property in CSS is used to set the flexible length on flexible items inside a flex container. It defines how a flex item will grow or shrink to fit the available space along the main axis.

filter
.filter-example {  width: 200px;  height: 200px;  background-image: url('example.jpg');  filter: blur(5px) grayscale(50%);  }

The CSS 'filter' property allows you to apply graphical effects like blur, grayscale, brightness, contrast, and more to an element's content. It can be a powerful tool for creating interesting visual effects on images and other elements.

empty-cells
table { empty-cells: show; }

The 'empty-cells' property in CSS controls the rendering of table cells that have no visible content. By default, table cells with no content are collapsed, but setting 'empty-cells' to 'show' will display borders around these empty cells.

display
.box { display: block; width: 200px; height: 100px; background-color: lightblue; }

The 'display' property in CSS determines how an element is rendered on the web page. It specifies the type of box used for an HTML element, controlling its layout behavior. Common values for 'display' include 'block', 'inline', 'inline-block', 'flex', and 'grid'.

direction
.direction-example { direction: rtl; }

The CSS 'direction' property specifies the direction in which content flows within a block-level element. It can be set to 'ltr' for left-to-right text direction or 'rtl' for right-to-left text direction.