a wide div with unlimited width

Viewed 21089

I've a big problem!

You know, a div default width is 100% (of the parent). And if its content width is more than 100% (100%=1440px), div shows content in multiply lines.

Now, if i want, the div shows its content in one line, what should I do? look at the simple code::

<div>
    <div>aaa</div>
    <div>bbb</div>
    <div>ccc</div>
    <div>ddd</div>
    ......(more than 100 other div, with unknown width)
</div>

NOTE: I don't know the content width.

I tried display: inline; and display: inline-block; and display: table;. they didn't work.

NOTE 2: I tried display: -moz-box;. It works, but Only in FIREFOX! Thanks ...

3 Answers
Related