You're looking for white-space: nowrap;
#list {
white-space: nowrap;
}
#list a, #list a div, #list .spacer {
display: inline-block;
}
#list a {
/* just some styles so I can see it working */
background-color: rgba(0, 0, 0, 0.5);
padding: 0 50px;
}
ALSO: IDs are supposed to unique per page. You can't have multiple #spacer
div
s, you should only have one. If you want multiple, class
is the way to go.