<!DOCTYPE html>
<style>
div {
  color: lime;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre;
  font-size: 50px;
  width: 5ch;
}
</style>
<body>
<div id=container>123456789</div>
</body>
