Skip to content

Commit 2543ce5

Browse files
committed
[css-overflow-4] Make example more robust
1 parent 68a5d24 commit 2543ce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css-overflow-4/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ ellipsis interaction with scrolling interfaces</h3>
637637
div.crawlbar {
638638
text-overflow: ellipsis;
639639
height: 2em;
640+
line-height: 1em;
640641
overflow: scroll;
641642
white-space: nowrap;
642643
width: 15em;
@@ -654,7 +655,7 @@ ellipsis interaction with scrolling interfaces</h3>
654655
</code></pre>
655656

656657
demonstration of sample CSS and HTML:
657-
<div style="text-overflow: ellipsis; height: 2em; overflow: scroll; white-space: nowrap; width: 15em; border:1em solid black;">
658+
<div style="text-overflow: ellipsis; height: 2em; line-height:1; overflow: scroll; white-space: nowrap; width: 15em; border:1em solid black;">
658659
CSS is awesome, especially when you can scroll
659660
to see extra text instead of just
660661
having it overlap other text by default.

0 commit comments

Comments
 (0)