Jump to content

Overflow:auto; - causes new line in IE


ATM

Recommended Posts

Hello,I have have a div; <div style="overflow:auto;"></div>When I have some text that overflows the div and has a hyphen (-) in it Internet Explorer starts a new line.for exampleif the text was: 'Hello-Dave' and it overflowed IE would show'Hello-Dave'Anyone know how to solve this?Thank you.

Link to comment
Share on other sites

It isn't supported by validators but you can use the

<nobr></nobr>

tags. Basically makes it so it will not break between those tags and instead will give you a horizontal scroll bar.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...