Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created July 31, 2013 07:49
Show Gist options
  • Save gunnarbittersmann/6120131 to your computer and use it in GitHub Desktop.
Save gunnarbittersmann/6120131 to your computer and use it in GitHub Desktop.
Single-line text, horizontally scrollable
/**
* Single-line text, horizontally scrollable
*/
output
{
display: block;
font-size: 2em;
width: 20em;
overflow-y: hidden;
white-space: nowrap;
border: 2px inset silver;
padding: 0.25em;
}
<output>
This is a long text.
Nonetheless, it should be displayed in a single line.
The user should be able to scroll to its end.
</output>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment