Skip to content

content-image

Tags: picture, photo, img, media, landscape, content element
Introduced in v1.0.0
Available in TYPO3

Buttons

Button Label Button Label

Usage

Icon Identifier

content-image

Markup

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#59f" d="M1 2h14v12H1z"/><path d="M14 3v10H2V3zm1-1H1v12h14z" opacity=".2"/><path fill="#e9f2ff" d="M11 8.7 7 13h7v-1.4z"/><path fill="#acf" d="M2 9.8V13h9L5 6.5z"/><circle cx="11" cy="6" r="1" fill="#fff"/></svg>

Inline

<span class="icon icon-size-small icon-state-default"> <span class="icon-markup"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#59f" d="M1 2h14v12H1z"/><path d="M14 3v10H2V3zm1-1H1v12h14z" opacity=".2"/><path fill="#e9f2ff" d="M11 8.7 7 13h7v-1.4z"/><path fill="#acf" d="M2 9.8V13h9L5 6.5z"/><circle cx="11" cy="6" r="1" fill="#fff"/></svg> </span> </span>

Sprite

<span class="icon icon-size-small icon-state-default"> <span class="icon-markup"> <svg role="img"><use xlink:href="dist/sprites/content.svg?v=1794104800428#content-image" /></svg> </span> </span>

TYPO3 ViewHelper

<core:icon identifier="content-image" size="small" />

TYPO3 Web Component

<typo3-backend-icon identifier="content-image" size="small"></typo3-backend-icon>

CSS Background Image

.myclass { background-size: 1em 1em; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2359f' d='M1 2h14v12H1z'/%3e%3cpath d='M14 3v10H2V3zm1-1H1v12h14z' opacity='.2'/%3e%3cpath fill='%23e9f2ff' d='M11 8.7 7 13h7v-1.4z'/%3e%3cpath fill='%23acf' d='M2 9.8V13h9L5 6.5z'/%3e%3ccircle cx='11' cy='6' r='1' fill='%23fff'/%3e%3c/svg%3e"); }

Sass Background Variable

@use "@typo3/icons/dist/icons" as *; @use "@typo3/icons/dist/scss/icons-variables-content" as *; .myclass { background-size: 1em 1em; background-image: $icon-content-image; }

Download

Download SVG