When an absolute position is set with left:100%
, the DIV
does not maintain its normal width based on content. Instead, the width shrinks by breaking text over spaces.
For a quick demonstration, check out this EXAMPLE
Is there a way to position an absolute element with left:100%
(just outside the parent), while still keeping the content of the DIV
in one line?
Please keep in mind that the length of the text and width of the DIV
are unknown and need to adjust according to the inner content.