Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: reference for select elements, at the clamp point</title>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
body {
font: 25px/1 Ahem;
}
input, button, select, textarea {
font: inherit;
}
.clamp {
width: 240px;
background: yellow;
}
select {
scrollbar-width: none;
}
.last-line {
white-space: nowrap;
}
</style>
<div class="clamp">
XX<br>
<span class="last-line"><select size="3"><option>XX</option><option>XX</option><option>XX</option></select>…</span>
</div>