Safe space โ
...
Browser support โ
...
Parameters โ
The CSS component uses a div
or an img
tag depending if the Safe Space
component has a background image or not.
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description |
---|---|---|
z-safe-space | string | The main parameter has two components following the pattern:
|
Playground โ
Customization โ
HTML Examples โ
Imports
html
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/javascript.js" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/base.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/SafeSpace.css" />
Code
html
<div z-safe-space="20:4"></div>
<img z-safe-space="25:3" src="../sample.png" loading="lazy" />