---
title: "Hur fixar man tomrum mellan två celler i en tabell med css?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/127798-hur-fixar-man-tomrum-mellan-två-celler-i-en-tabell-med-css"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "Ken"
published: "2005-05-07T13:31:26.000Z"
updated: "2005-05-08T21:06:39.000Z"
replies: 2
views: 305
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/127798-hur-fixar-man-tomrum-mellan-två-celler-i-en-tabell-med-css"
---

# Hur fixar man tomrum mellan två celler i en tabell med css?

## #1 — Ken, 2005-05-07T13:31Z

Hur får man att det blir tomrum mellan två celler enbart på bredden i tabell med hjälp av css?

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

## #2 — Troxy, 2005-05-08T00:43Z

Edit, fungerade inte... ^^

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

## #3 — bossse, 2005-05-08T21:06Z

Tja, så här kan man väl göra!

```
<html>
<head>
<style type="text/css">
table 
{
width:100%; height:50%;
border:2px solid green;
border-collapse:separate;
padding:5px;
}
.td1 
{
width:25%;
background-color: blue;
border-right:25px solid;
}
.td2 
{
width:25%;
background-color: blue;
border-right:15px solid;
}
.td3 
{
width:25%;
background-color: blue;
border-right:5px solid ;
}
.td4 
{
width:25%;
background-color: blue;
border-right:0px solid ;
}
</style>
</head>
<body>

<table cellpadding=0 cellspacing=0>
<tr>
<td class=td1>Cell 1</td>
<td class=td2>Cell 2</td>
<td class=td3>Cell 3</td>
<td class=td4>Cell 4</td>
</tr>
</table>
</body>
</html>
```

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/127798-hur-fixar-man-tomrum-mellan-två-celler-i-en-tabell-med-css
