Leeoniya
11-08-2010, 01:43 AM
is there any way to make an inline or inline-block element "expand" to fill the remaining width on the same line?
the behavior can be achieved quite easily with a table row and cell; in fact, this is the default behavior.
i've been working with css layouts for years and this has to be the single most annoying problem other than (the similar) non-expanding heights (equal height columns) and of course IE*
always run into a need for this when creating horizontal ul/li nav menus with a dynamic amount of buttons that need to all fit into the fixed width of the ul. i'm always having to write backend code that counts the buttons and barfs out the needed css width percentage for the li's.
thanks,
Leon
the behavior can be achieved quite easily with a table row and cell; in fact, this is the default behavior.
i've been working with css layouts for years and this has to be the single most annoying problem other than (the similar) non-expanding heights (equal height columns) and of course IE*
always run into a need for this when creating horizontal ul/li nav menus with a dynamic amount of buttons that need to all fit into the fixed width of the ul. i'm always having to write backend code that counts the buttons and barfs out the needed css width percentage for the li's.
thanks,
Leon