How to stop text from taking up more than 1 line

<div>test that doesn't wrap</div>

<style type='text/css'>div { white-space: nowrap; overflow: hidden;}</style>