# Div positioning

**URL:** https://forum.kirupa.com/t/div-positioning/226046
**Category:** web dev
**Created:** [May 17, 2007, 7:05pm UTC](https://forum.kirupa.com/t/div-positioning/226046 "2007-05-17T19:05:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kdd](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kdd](https://forum.kirupa.com/u/kdd)
#### Post date: [May 17, 2007, 7:05pm UTC](https://forum.kirupa.com/t/div-positioning/226046/1 "2007-05-17T19:05:20Z")

</div>

I’m trying to do this: have one div element position to the right of another div element.

```auto

--------------------------------------
| | |
| Div 1 | Div 2 |
| | |
--------------------------------------

```

I tried a lot, but doesn’t work.  
Please help.

I can’t use float, because all this is inside another large container…

Nevermind, I’ll just use fixed width and height div 1. That’ll solve the problem.
