I want to center a DIV which width is unknown. It should be as width as the actual content. I tried:

```
<div style="background-color: red; width: 300px; text-align: center; margin: 0 auto;">dsffsffsfsddf</div>

```

it only works when "width" is set. `Auto` wont help.