aspect-ratio-box
Reactive icon

Aspect Ratio Box

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 14 Oct (18 hours ago)
 by 
0.0
 (0 ratings)
aspect-ratio-box

Aspect Ratio Box

Details
Aspect Ratio Box is a lightweight, zero-JavaScript Reactive Web Block for OutSystems that maintains a consistent aspect ratio for any content placed inside it. Built entirely with CSS using the classic padding-bottom percentage trick, it works reliably across all browsers and devices without any external dependencies.
Read more

Simply configure the ratio width and height values and drop any content images, videos, iframes, cards, or custom widgets inside the block's content placeholder. The box will always maintain the correct proportions regardless of screen size.

Key Features

  • Fully configurable aspect ratio — any width:height combination
  • Works with any content — images, videos, iframes, cards, custom widgets
  • Zero JavaScript — pure CSS implementation
  • Fixed width with pixel-perfect proportions
  • Configurable background color
  • Configurable border radius
  • Configurable overflow behavior
  • Lightweight — no performance impact
  • No external libraries or CDN required
  • Mobile compatible
Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category