You can try styling it with
width: 0;
together with the default overflow: visible
, it will produce that effect. Demo
But note that forcing overflow may produce undesired behavior.
Edit: Using it together with display: table
(instead of block
) or display: inline-table
(instead of inline-block
) can fix those problems.