---
title: "CSS / HTML problem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/156990-css-html-problem"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "Marckus"
published: "2007-02-09T11:00:46.000Z"
updated: "2007-02-09T13:01:22.000Z"
replies: 1
views: 421
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/156990-css-html-problem"
---

# CSS / HTML problem

## #1 — Marckus, 2007-02-09T11:00Z

Hejsan

Har lite problem med CSS / XHTML:n och ja, det är tre divar.
Och ena diven ska ligga över maindiven men som det är nu så hamnar den mellan.

CSS : 

```
body
{
	margin: 0;
	padding: 0;
	background-color: #000000;
}
#header
{
	position: absolute;
	left: 0px;
	top: 0px;
	height: 168px;
	width: 1000px;
	z-index: 2;
	margin: 0;
	padding: 0;
}
#footer
{
	position: absolute;
	left: 0px;
	top: 168px;
	height: 840px;
	width: 1000px;
	z-index: 3;
	margin: 0;
	padding: 0;
}
#flash
{
	position: absolute;
	left: 5px;
	top: 168px;
	height: 265px;
	width: 245px;
	z-index: 10;
	margin: 0;
	padding: 0;
}
```

HTML : 

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyPage</title>
<link href="layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header"><img src="maintop.jpg" alt="" /></div>
<div class="flash">
	<object type="application/x-shockwave-flash" data="video.swf" width="245" height="265">
		<param name="movie" value="video.swf" />
		<param name="play" value="false" />
		<param name="loop" value="false" />
		<param name="quality" value="high" />
		<param name="wmode" value="transparent" />
	</object>
</div>
<div class="footer"><img src="maincontent.jpg" alt="" /></div>	
</body>
</html>
```

Några förslag?

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

## #2 — Marckus, 2007-02-09T13:01Z

Löst, byte ut class emot id.

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/156990-css-html-problem
