# \[CSS\] Layout problem: IE vs FF

**URL:** <https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648>\
**Category:** web dev\
**Created:** [March 20, 2006, 10:21am UTC](https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648 "2006-03-20T10:21:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [March 20, 2006, 10:21am UTC](https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648/1 "2006-03-20T10:21:21Z")

</div>

Hi,

I’m trying to make a small portfolio website.  
Check it out here: :look: [LINK](http://cmdstud.khlim.be/~jcornelissen/brol/test.html)  
If you check it in Firefox you’ll see what I want to create and in IE it’s messed up :td:

CSS:

```auto
<style type="text/css">
<!--
#container {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #CCFF00;
	background-color: #333333;
	width: 200px;
	clear: none;
	float: left;
	border: 1px solid #CCFF00;
	text-align: left;
}
#box {
	width: 615px;
	padding: 20px 10px 10px 10px;
	background-color: #669900;
	border-right: 3px solid #333333;
	height: 100%;
}
.container_text {
	color: #CCFF00;
	margin: 2px;
	padding: 5px;
}
.item {
	padding-left: 25px;
	padding-bottom: 10px;
	color: #FFFFFF;
}
.container_header {
	font-weight: bold;
	color: #333333;
	background-color: #CCFF00;
	font-size: 12px;
	font-variant: small-caps;
	text-align: right;
	padding-right: 15px;
}
body {
	background-color: #333333;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(bg.gif);
}
a {
	text-decoration: none;
	border-bottom: 1px solid;
	border-bottom-color: #FFFFFF;
}
a:link {
	color: #99FF00;
}
a:hover {
	color: #FFFFFF;
	border-bottom-color: #99FF00;
}
a:visited {
	color: #FFFFFF;
	background-color: #66CC00;
}
a:active {
	color: #99CC00;
}
#container2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #CCFF00;
	background-color: #333333;
	width: 200px;
	clear: none;
	border: 1px solid #CCFF00;
	text-align: left;
	margin-left: 205px;
	float: none;
}
#box2 {
	float: left;
	width: 410px;
}
#container3 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #CCFF00;
	background-color: #333333;
	width: 200px;
	clear: none;
	border: 1px solid #CCFF00;
	text-align: left;
	margin-left: 410px;
	float: none;
}

-->
</style>

```

Can someone give me some pointers? :crying: First time I’m using divs to layout a site…

---

<div class="post-metadata">

**Author:** ![kallisti](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kallisti](https://forum.kirupa.com/u/kallisti)\
**Post date:** [March 20, 2006, 11:24am UTC](https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648/2 "2006-03-20T11:24:01Z")

</div>

sometimes with IE you have to specify the null values. So if you have margin-left set to 25, and thats all, in IE set all the others to 0.  
IE doesnt think for itself like that. Supply all values even if it is 0.

---

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [March 20, 2006, 12:20pm UTC](https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648/3 "2006-03-20T12:20:24Z")

</div>

I tried it like this:

padding: 20px 10px 0px 10px;

But nothing changed…

---

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [March 20, 2006, 1:16pm UTC](https://forum.kirupa.com/t/css-layout-problem-ie-vs-ff/182648/4 "2006-03-20T13:16:30Z")

</div>

Positioned them absolute, now it works…
