---
title: "100% tabell"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/144694-100-tabell"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "SoulGod"
published: "2006-03-28T17:28:35.000Z"
updated: "2006-03-28T19:25:30.000Z"
replies: 1
views: 373
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/144694-100-tabell"
---

# 100% tabell

## #1 — SoulGod, 2006-03-28T17:28Z

Jag vill ha detta:
En "stor" tabell, som har 100% som höjd (den får jag att fungera)
Sen vill jag även köra en mindre tabell i den, som också ska vara 100% (den ligger i en cell i den stora tabellen).

Men den vägrar bli 100% ... hur gör jag?

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

## #2 — bossse, 2006-03-28T19:25Z

Beror på hur du vill ha kolumn resp. rader.
Slängde ihop ett exempel.

```
<html>
<head>
<style type="text/css"> 
<!-- 
html, body {background-color:green; margin:3 3 3 3}
table {background-color:blue;border:1px solid black; border-collapse:collapse; width:100%; height:100%;} 
td {width:50%; height:50%; border:1px solid black; border-collapse:collapse}
.tabell2 {background-color:red;border:1px solid black; border-collapse:collapse; width:100%; height:100%;} 
--> 
</style> 
</head>
<body>
<table> 
<tr> 
<td>tabellcell i stora tabellen</td> 
<td>
<table class=tabell2>
<tr>
<td>cell 1 i tabell 2</td>
</tr>
<tr>
<td>cell 2 i tabell 2</td>
</tr>
</table>
</td> 
</tr> 
</table> 
</body>
</html>
```

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/144694-100-tabell
