Email or username:

Password:

Forgot your password?
Lea Verou

So it turns out you can use writing-mode in Chrome & Firefox to lay out a <select> horizontally ๐Ÿ™ƒ

codepen.io/leaverou/pen/PoMzXX

You can even apply field-sizing: content; to get rid of the empty space!

preview of codepen
9 comments
Egor Kloos

@leaverou Iโ€™ve used writing mode to flip a table. Not convinced how useful that was, but fun to do.

codepen.io/dutchcelt/full/zYLG

Jak2k

@leaverou That's useful these super wide monitors!

Jak2k

@leaverou Now we only need round dropdowns for smartwatches.

Marius Gundersen

@leaverou If only styling the select was easier this could be useful, fรถr example for making a toggle switch or a pure css tab-bar

Go Up