Skip to main content

aspect_ratio

Function aspect_ratio 

Source
pub fn aspect_ratio(ratio: f64) -> Style
Expand description

A box whose height follows its width at ratio (width over height), with its content clipped to it.