|
I don't believe it is possible unless the total space is fixed width.
There's no way to convince [all] browsers that the percentages are intended to add up to 100%, and more importantly, that the pixel-widths are supposed to add up to some total.
Let's say the total width is dynamic and at the moment it is 904px and you have 5 buttons, for a clean 20% each.
Well 20% of 904px is 180.8 pixels so each button is probably going to be 181px. But that adds up to 905px. Basically you are depending on the browser to magically pick one to short by a pixel.
Some browsers actually do this. But not all of them.
Because really, who says you even want it to add up to 100%? Browsers have to just kind of guess.
I always give up and use a dirty, nasty table.
|
|
|
|
≡
|
2011 Jun 23 at 06:31 UTC
— Ed. 2011 Jun 23 at 06:33 UTC
|
|