# Simple CSS Div positioning problem - doing my head in!

**URL:** <https://forum.kirupa.com/t/simple-css-div-positioning-problem-doing-my-head-in/223751>\
**Category:** web dev\
**Created:** [April 25, 2007, 2:29pm UTC](https://forum.kirupa.com/t/simple-css-div-positioning-problem-doing-my-head-in/223751 "2007-04-25T14:29:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![burns](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@burns](https://forum.kirupa.com/u/burns)\
**Post date:** [April 25, 2007, 2:29pm UTC](https://forum.kirupa.com/t/simple-css-div-positioning-problem-doing-my-head-in/223751/1 "2007-04-25T14:29:53Z")

</div>

Hi,

Basicaly I am having a browser compatibility problem with the following css:

```auto
<!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=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#one {
	float: left;
	width: 200px;
	background-color: #003366;
	
}
#two {
	float: left;
	width: 750px;
	background-color: #006699;
}
#container {
	
	width: 950px;
	border: 1px solid #000000;
	height:auto;
}
-->
</style>
</head>

<body>
<div id="container">
<div id="one">
  <p>ff</p>
  <p>f</p>
  <p>f</p>
  <p>&nbsp;</p>
  <p>f</p>
  <p>&nbsp;</p>
</div>
<div id="two">
  <p>fff</p>
  <p>&nbsp;</p>
  <p>f</p>
  <p>f</p>
  <p>s</p>
  <p>as</p>
  <p>s</p>
  <p>f</p>
  <p>&nbsp;</p>
</div>
</div>
</body>
</html>

```

In IE it looks fine:

[![](http://img241.imageshack.us/img241/1710/ieob2.jpg)](http://imageshack.us)

but in FF you will see the border is not stretching around the 2 divs? is this bug?

[![](http://img254.imageshack.us/img254/5254/ffsk3.jpg)](http://imageshack.us)

Thanks
