> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/using-elements/components/layout-components/text-wrap.md).

# Text Wrap

Text Wrap places an image to the left or right of its child content so text flows around it. With a transparent PNG, WebP, or SVG, the text can follow the visible shape instead of the image’s rectangular bounds.

{% hint style="info" %}
Text Wrap supports image resources, custom image URLs, and CMS image fields.
{% endhint %}

{% embed url="<https://youtu.be/nE9T9HgoRS0>" %}

### How to Use Text Wrap

You’ll find Text Wrap under **Layout** in the Components list.

1. Drag **Text Wrap** onto the page.
2. Place one or more Text or Typography components inside it.
3. In **Media**, choose Resource, Custom, or CMS and provide the image.
4. Add alternative text.
5. Choose Left or Right under Float, then adjust Width, Margin, and Threshold.

<figure><img src="/files/ApiDvse9XU1ED3VWL24h" alt="A Text Wrap component containing text with an image floated beside it"><figcaption><p>A basic Text Wrap setup in Elements.</p></figcaption></figure>

### Component Settings

#### Media

**Type**

* **Resource** — Uses an image from the project. This is the default.
* **Custom** — Uses a URL or path entered in Source.
* **CMS** — Uses a CMS field. The default field is `{{item.image.src}}`.

**Alt Text** describes the image for search engines and assistive technologies. Leave it empty only when the image is purely decorative.

**Float**

* **None** — Displays the image without floating text around it.
* **Left** — Floats the image to the left. This is the default.
* **Right** — Floats the image to the right.

**Width** sets the image width and defaults to 40%.

**Margin** controls the space between the image and text and defaults to theme spacing 4.

**Threshold** controls how opaque a pixel must be before text stops wrapping. It defaults to 50%. Lower values keep text farther from soft or translucent edges.

### Accessibility

Add useful alternative text when the image conveys information. Keep line lengths readable around the shape and check that narrow screens do not leave an uncomfortably small text column.

### Tips and Best Practices

* **Use transparent assets for shaped wrapping:** A solid image wraps text around its full rectangle.
* **Use longer copy:** The effect is most useful when there is enough text to flow below the image.
* **Check mobile widths:** Reduce the image width or disable Float when the remaining text column becomes too narrow.

### Related Components

* [Image](/elements-docs/using-elements/components/content-and-media/image.md) — Displays a standalone image with lightbox and sizing controls.
* [Typography](/elements-docs/using-elements/components/content-and-media/typography.md) — Provides a styled long-form content block to wrap around the image.

| Common Control                                                                                                     | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [Link](/elements-docs/using-elements/components/common-controls/link.md)                                           | Link to a page, resource, anchor, email address, or website.            |
| [Layout](/elements-docs/using-elements/components/common-controls/layout.md)                                       | Control positioning, stacking, visibility, overflow, and isolation.     |
| [Sizing](/elements-docs/using-elements/components/common-controls/sizing.md)                                       | Set width, height, and responsive size constraints.                     |
| [Spacing](/elements-docs/using-elements/components/common-controls/spacing.md)                                     | Add responsive margin and padding.                                      |
| [Typography & Text Styles](/elements-docs/using-elements/components/common-controls/typography-and-text-styles.md) | Control fonts, text spacing, decoration, colour, and semantic wrappers. |
| [Backgrounds](/elements-docs/using-elements/components/common-controls/backgrounds.md)                             | Apply colour, image, gradient, SVG, video, and hover backgrounds.       |
| [Transitions](/elements-docs/using-elements/components/common-controls/transitions.md)                             | Choose what animates and set its timing curve, duration, and delay.     |
| [Effects](/elements-docs/using-elements/components/common-controls/effects.md)                                     | Apply shadows, opacity, and hover effects.                              |
| [Filters](/elements-docs/using-elements/components/common-controls/filters.md)                                     | Apply blur, brightness, saturation, shadow, and backdrop effects.       |
| [Transforms](/elements-docs/using-elements/components/common-controls/transforms.md)                               | Scale, rotate, move, and skew components.                               |
| [Borders](/elements-docs/using-elements/components/common-controls/borders.md)                                     | Set border style, colour, opacity, width, radius, and hover states.     |
| [Advanced](/elements-docs/using-elements/components/common-controls/advanced.md)                                   | Add CSS classes and IDs, or change supported HTML tags.                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/using-elements/components/layout-components/text-wrap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
