# \[CSS\] float

**URL:** <https://forum.kirupa.com/t/css-float/223472>\
**Category:** web dev\
**Created:** [April 23, 2007, 4:42am UTC](https://forum.kirupa.com/t/css-float/223472 "2007-04-23T04:42:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [April 23, 2007, 4:42am UTC](https://forum.kirupa.com/t/css-float/223472/1 "2007-04-23T04:42:11Z")

</div>

[![](http://img242.imageshack.us/img242/2412/kirnt6.th.gif)](http://img242.imageshack.us/my.php?image=kirnt6.gif)

I’m trying to get the user and nav div’s to go side by side, but the user div is squashed downward and isn’t as wide as I set it.

```php

#page {
	margin: auto;
	width: 1000px;
}

#nav {
	background: #444d45;	// black
	width: 800px;
	height: 45px;
}

#user {
	float: right;
	background: #444d45;	// black
	width: 200px;
	height: 45px;
}

..........

```

```auto

<div id="page">
	
		<div id="nav">
			nav
		</div>
		
		<div id="user">
			user
		</div>

                .....

```
