Is there a foolproof method or best practice to prevent an HTMLElement
from wrapping?
Specifically, I'm referring to elements with relative
positioning. One possible solution could be using absolute
elements and adjusting their left
position based on the width of anotherElement
.
For instance: http://jsfiddle.net/YX4cm/
In the provided example, the use of float:left
style can still result in wrapping when space is limited.
Therefore, my questions are:
- Is it possible to completely eliminate wrapping?
- If so, what is considered the most effective approach to achieve this?