
generators
CSS Gradient
The ultimate CSS gradient generator with visual preview and code export.
#gradient#color#background
Generate CSS for maintaining fixed aspect ratios responsively. Get the modern aspect-ratio property (97%+ browser support) and the classic padding-bottom percentage hack for legacy targets. Includes 8 common ratio presets and a custom ratio input.
Custom ratio
Preview — 16:9
Choose from common ratios like 16:9 (video), 4:3 (classic TV), 1:1 (square), or enter a custom width:height.
Drag the width slider to see how the element maintains its ratio at different container sizes.
Modern aspect-ratio is clean and simple. Use the padding-bottom hack only if you need IE11 or very old browser support.
Copy the complete CSS including both the modern and legacy approaches for maximum compatibility.
From our directory of 30+ CSS tools.
Know a great CSS tool?
Submit it to the directory and help developers discover it.