What is the “best” way or “best practice” to prevent an HTMLElement from wrapping ?
I’m actually talking about relative positioned elements. I think you could just use absolute elements and append those with their left position to anotherElement.width.
Example: http://jsfiddle.net/YX4cm/
This example uses a float:left style, but it also wraps new Elements when there is not enough space on the right side.
So my question here are:
- is there a way to completely deny wrapping ?
- if so, what is the best practice for that ?
One way would be to use a two-container system, with the inner container set to position absolute so you don’t have to actually touch the styles of the inner, repeated elements.
Fiddle: http://jsfiddle.net/3kB3D/
HTML:
CSS: