Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

CSS Div Overflow Question

Hopefully this will be a quick question. I've got a div with a dynamically generated list of strings in it, with it set to overflow:scroll in the style. The problem is that the string is wrapping around when it's longer than the DIV, rather than just staying on one line.

How do I fix that?

Actually, here is the whole DIV:

<div id='ddlMulti_div' style=" overflow:scroll;width: 250px; display: inline-block; border-color: DarkGray; border-width: 1px; border-style: Solid; overflow: auto; background-color: window; display: none; position: absolute; z-index: 100;"><!-- stuff --></div>
[710 byte] By [Telos] at [2007-11-11 10:30:07]