---
title: "Får inte in hela formatmallen på sidan"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/184759-får-inte-in-hela-formatmallen-på-sidan"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "WebbisNet"
published: "2010-09-30T17:22:51.000Z"
updated: "2010-09-30T17:34:51.000Z"
replies: 1
views: 345
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/184759-får-inte-in-hela-formatmallen-på-sidan"
---

# Får inte in hela formatmallen på sidan

## #1 — WebbisNet, 2010-09-30T17:22Z

Det är bara rightContainer som visar formatmallen, inte leftContainer, varför???

```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Namnlöst dokument</title>

<style type="text/css" media="screen">
@import url("css/basicStyle.css");
</style>

</head>
<body
<div class="leftContainer">
Vänstra containern
<br />
test
</div>

<div class="rightContainer">
Högra containern
<br />
test
</div>

</body>
</html>
```

Formatmallen

```
<style type="text/css">
<!--
.leftContainer {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 10px;
	font-style: normal;
	font-weight: 300;
	color: #333;
	padding: 10px;
	float: left;
	height: 400px;
	width: 200px;
	overflow: auto;
	position: absolute;
	left:100px;
	top:100px;
	background-color:#CCC;
	border:1px;
	border-style:solid;
	border-color:#000;
}

.rightContainer {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 10px;
	font-style: normal;
	font-weight: 300;
	color: #333;
	padding: 10px;
	float: left;
	height: 400px;
	width: 500px;
	overflow: auto;
	position: absolute;
	left:400px;
	top:100px;
	background-color:#CCC;
	border:1px;
	border-style:solid;
	border-color:#000;
}
-->
</style>
```

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

## #2 — voigtann1, 2010-09-30T17:34Z

ta bort HTML elementen i din CSS mall

\<style type="text/css"\>
\<!--

skall inte vara där.

sen verkar du inte avsluta body elementet.

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/184759-får-inte-in-hela-formatmallen-på-sidan
