---
title: "White-Space Problem och <![CDATA--"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/166041-white-space-problem-och-cdata"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "Sasch"
published: "2007-11-01T14:07:04.000Z"
updated: "2007-11-04T16:17:27.000Z"
replies: 4
views: 538
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/html-css/166041-white-space-problem-och-cdata"
---

# White-Space Problem och <![CDATA--

## #1 — Sasch, 2007-11-01T14:07Z

I Firefox lägger det sig perfekt, i IE 6.0 ligger det sådär, det bryts iallafall och i IE 7.0 fungerar det inte alls, där lägger sig alla bara på en enda lång rad.
Ex

```
IE 7.0
[Object With Space] [Object With Space] [Object With Space] [Object With Space]

IE: 6.0
[Object With Space] [Object With Space] [Object With
Space] [Object With Space]

FF:
[Object With Space] [Object With Space]
[Object With Space] [Object With Space]
```

HTML:

```
<blockquote>
	<ul class="corp">
		<li>AEG</li>
		<li>Adept Press</li>
		<li>Archaia Studios Press</li>
		<li>Asmodée Editions</li>
		<li>Atarashi Games</li>
		<li>Atlas Games</li>
		<li>Avalon Hill</li>
		<li>Bad Axe Games</li>
		<li>Black Industries</li>
		<li>Chaosium</li>
		<li>Cheapass Games</li>
		<li>Chessex</li>
		<li>Crystal Caste</li>
		<li>Days of Wonder</li>
	</ul>
</blockquote>
```

CSS:

```
.corp li {
 display: inline;
 padding: 0.5em;
 white-space: nowrap;
}
```

Dessutom får jag inte min \[if lt IE 7\] Att fungera, gör jag något fel?

```
<!--[if lt IE 7]>
	<style type="text/css">@import url("css-ie.css");</style>
<![endif]-->
```

Permalänk: https://www.webforum.nu/p/166041

## #2 — Sasch, 2007-11-02T11:19Z

Ingen som har en idé?

Permalänk: https://www.webforum.nu/p/2045928

## #3 — voigtann1, 2007-11-02T11:28Z

prova att sätta en width på det?

Permalänk: https://www.webforum.nu/p/2045930

## #4 — Sasch, 2007-11-04T16:16Z

> **voigtann1 skrev:**
>
> prova att sätta en width på det?

Gjorde så här, och även om det inte löste problemet med att texten inte vek sig i explorer så fick den i explorer iallafall en snyggare uppställning.

```
.corp {
 width: 100%;
}

.corp li {
 border-left: 2px solid #000;
 display: inline;
 padding: 0.5em;
 white-space: normal;
}
```

Permalänk: https://www.webforum.nu/p/2046358

## #5 — Sasch, 2007-11-04T16:17Z

Löste problemet med CDATA-taggen iallafall med. Allt löst.

Permalänk: https://www.webforum.nu/p/2046359

---

Tråden på webben: https://www.webforum.nu/amne/html-css/166041-white-space-problem-och-cdata
