Hi everybody,
I'm scratching my head with a CSS problem.
I want to have the following (the two pics have these size for
a good reason, the whole point of the page is basically to show
these pices at these fixed sizes) :
spacer - fixed size picture - spacer - fixed size picture - spacer
Height alignment doesn't matter, all I want is the "horizontal spacer"
to have a variable width.
And I'd like each of the three "spacer" to use one third of the
"remaining width". For example, if the first picture as a width of
350 pixel, the second a width of 250 and the viewable area a
width of 1002 pixels, I'd like to have each spacer taking :
(viewable area width - (350 + 250)) / 3
402 / 3 = 134 pixels
I can do it using a really ugly JavaScript hack (hence not only
ugly but also working only when the browser has JavaScript),
but I want to do it using CSS.
If I'm working only in %, I can do it easily, but here I'm forced
to deal with fixed-size picture and I'm lost.
I gave an example with 3 spacers / 2 fixed-size picture, but it
can be 4 spacers / 3 fixed-size pictures, etc.
Any hint is greatly appreciated,
Driss