This will only work on the main parent elements such as elements with display property as follows:
So now you know what are the main parent elements. Now back to the point, to add infinite width set the white-space property to the value nowrap. Example:
and put display:inline-block on all the children elements.
Now the div will get an infinite width. Enjoy !!!