---
title: "DIV container - Inhalt ragt raus !"
url: "https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus"
source: "typo3.net"
tags: ["Frontend","Styling","Frage","HTML & CSS"]
created: "2007-11-15"
last_reply: "2007-11-16"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# DIV container - Inhalt ragt raus !

Frontend › Styling · 3 Antworten · gestartet 2007-11-15

## Eröffnungsbeitrag

**TheFreeman** · 2007-11-15 · [Beitrag #1](https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus/1)

Hallo,

ich habe im FF das Porblem, daß mein Container, im Gegensatz zum IE 6+7, sich nicht anpasst und der Inhalt darüber hinaussteht.
Ich bekomm es nicht gebacken, dass er sich im FF anpasst.

Hier ist mein CSS-Teil dafür:

```html
.maincont
{
	margin-top: 2px;
	width: 941px;
	background-color: #e2f1ea;
	/* border: 1px solid black; */
	}
	.links
	{
		float: left;
		margin-top: 0px;
		width: 136px;
		/* border: 1px solid blue; */
		}
		/* -------- */
		/* PREVMENU */
		/* -------- */
		.prevmenu
		{
			margin-top: 10px;
		}
		.prevmenu .head
		{
			width: 136px;
			height: 39px;
			background-image: url(../../fileadmin/layout/Menu_Links_HG_Head.gif);
			line-height: 40px;
			text-align: center;
			color: #00693c;
			font-weight: bold;
			vertical-align: middle;
		}
		.prevmenu .menu
		{
			background-image: url(../../fileadmin/layout/Menu_Links_HG_Mid.jpg);
			background-repeat: repeat-y;
			border: none;
			}
			.prevmenu .menu .menublock
			{
				padding: 10px;
			}
		.prevmenu .foot
		{
			width: 136px;
			height: 3px;
			/* background-image: url(../../fileadmin/layout/Menu_Links_HG_Foot.jpg); */
			border: none;
		}
		
	.content
	{
		margin-left: 154px;
		width: 746px;
		/* border: 1px solid red; */
	}
```

Die Klasse "maincont" ist der Bereich, der sich nicht anpassen will im FF.
Was habe ich da übersehen? Kann mir da jemand helfen? #paralyzed#

"links" ist der Bereich, der drinsteckt und ein Menu beherbergt.

## Antworten

### [#2](https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus/2) · TimoF · 2007-11-16

du hast überall eine fixe breite angegeben. width: ...px;

im gegensatz zum IE dehnt der FF dass div nicht aus.

versuch es mal mit min-width: ...px;

das kennt zwar nicht der IE, aber setze ein *html vor das normale width.
dann wird das width nur vom IE interpretiert (dort dehnt er sich ja auch aus) und der FF interpretiert dann das min-width.

keine ahnung ob es funktioniert, aber ist mir so spontan aufgefallen.

### [#3](https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus/3) · just2b · 2007-11-16

TimoF ist schon richtig.

du sagst ja eine bestimmte Breite, und der FF macht sogar das was du ihm sagst - erstaunlich ;)

georg

### [#4](https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus/4) · TheFreeman · 2007-11-16

Oha, ich habe vergessen zu erwähnen, dass der Inhalt nicht über die Breite hinaussteht, sondern in der Höhe nach unten weg hinausragt. Das mit der Breite scheint zu passen. :o

---

Quelle: „DIV container - Inhalt ragt raus !“, typo3.net, https://www.typo3.net/d/70532-div-container-inhalt-ragt-raus
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
