---
title: "Wrapping of images, tables, bullet lists"
url: "https://www.typo3.net/d/76963-wrapping-of-images-tables-bullet-lists"
source: "typo3.net"
tags: ["Allgemein","English","Frage","Inhaltselemente"]
created: "2008-05-07"
last_reply: "2008-05-08"
replies: 1
solved: false
page: 1
pages: 1
lang: "en"
---

# Wrapping of images, tables, bullet lists

Allgemein · 1 Antwort · gestartet 2008-05-07

## Eröffnungsbeitrag

**Invisible Kid** · 2008-05-07 · [Beitrag #1](https://www.typo3.net/d/76963-wrapping-of-images-tables-bullet-lists/1)

Hello to everybody!

I have a problem with content wrapping. I need to put every content element (without header) into <div>-tags with some class.
For example, I may wrap every paragraph of text by adding such string into Template Constants:

```typoscript
styles.content.textStyle.altWrap = <div class="die_text_middle">|</div>
```

But how may I do the same for images in content elements of types "Image" and "Text with image"? And the same for "Table" and "Bullet List"?

And another question.
How could I change the height of 'clear.gif', wich is inserted before images and tables?
For example, this string in Template Setup will make the space amount of 10px before images, that were insereted with type "Image":

```typoscript
tt_content.image.20.spaceBelowAbove = 10
```

But how can I do the same for images in "Text with Image" type of content elements?

String:

```typoscript
tt_content.textpic.20.spaceBelowAbove = 50
```

makes a distance between text and image inside content element, but it doesn't change space between image and header or previous content element!

Thanks for everybody, who will answer me!

## Antworten

### [#2](https://www.typo3.net/d/76963-wrapping-of-images-tables-bullet-lists/2) · Invisible Kid · 2008-05-08

Seems, I have a solution.
This may be done by adding such lines in Template Setup:

```typoscript
CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
/*and so on*/

renderObj.image.20.stdWrap.wrap = <div style="margin-top: 11px;"> | </div>

renderObj.textpic.20.stdWrap.wrap = <div style="margin-top: 11px;"> | </div>

renderObj.table.20.stdWrap.wrap = <div style="margin-top: 11px;"> | </div>

renderObj.uploads.20.stdWrap.wrap = <div style="margin-top: 11px;"> | </div>
}
```

But there is still a little problem: when we have type "Text with Image" those configuration wraps whole content elemnt, but how could I wrap only images from it?

---

Quelle: „Wrapping of images, tables, bullet lists“, typo3.net, https://www.typo3.net/d/76963-wrapping-of-images-tables-bullet-lists
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
