Learn CSS daily

Generate Your Own Playground

Type any CSS property and get a live, editable playground instantly.

inline-size
.container {
  display: flex;
  gap: 10px;
}

.box {
  background-color: lightblue;
  inline-size: 150px;
  padding: 20px;
  text-align: center;
  border: 2px solid blue;
  height: 100px;
}

The 'inline-size' CSS property defines the size of an element's inline dimension, which is the width in a horizontal writing mode. It allows for more control over the layout of elements in a responsive design by specifying how much space an element should occupy along the inline axis. This property is particularly useful for flexbox and grid layouts, as it can help manage content flow and alignment.

image-rendering
.image-container {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: 2px solid #333;
}

.pixel-art {
    width: 300px;
    height: 300px;
    image-rendering: pixelated;
}

The 'image-rendering' CSS property controls the scaling behavior of images when they are resized. It can be particularly useful for pixel art or low-resolution images, allowing developers to specify whether to use nearest-neighbor interpolation or smooth interpolation. This property helps maintain the visual quality of images by affecting how they are rendered at different sizes.

hyphens
.container {
  width: 200px;
  border: 1px solid #ccc;
  padding: 10px;
  overflow-wrap: break-word;
}

.hyphenated {
  hyphens: auto;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  overflow-wrap: break-word;
}

The 'hyphens' property in CSS controls the automatic hyphenation of words in a text block when they overflow their container. This property can enhance readability in narrow columns of text by breaking long words at appropriate points, adding hyphens where necessary. It is particularly useful for languages that have hyphenation rules.

height
.container { background-color: #f0f0f0; padding: 20px; text-align: center; } .box { height: 150px; width: 150px; background-color: #3498db; color: white; display: flex; align-items: center; justify-content: center; border-radius: 10px; }

The 'height' property in CSS specifies the height of an element. It can be set using various units such as pixels, percentages, or viewport units. Adjusting the height can significantly affect the layout and appearance of web elements.

hanging-punctuation
.text-container { width: 300px; margin: 20px; font-family: Arial, sans-serif; font-size: 18px; }
.hanging-punctuation { hanging-punctuation: first; text-align: justify; margin-left: -0.5em; display: inline-block; }

The 'hanging-punctuation' CSS property controls the placement of punctuation marks at the beginning or end of a line of text. It allows punctuation marks to hang outside the margin, creating a more visually appealing text layout. This property is particularly useful in typography for improving readability and aesthetics in text-heavy designs.