[css-d] decimals in widths?

2007-11-02 Thread Brian Cummiskey
Hi all, I have a dynamic list of items that displays inline in floated div's. I was doing some math on how many, and out of the available space, to split it evenly (as they are aligned center) ie, wrapper is 500px 2 items each gets 250px of space/margin width. i have an odd shape on this one

Re: [css-d] decimals in widths?

2007-11-02 Thread Mike Tierney
(Smarter folk, please feel free to correct me if I'm wrong... ) Pixels are inherently a binary unit - either it's a whole pixel that's active or a whole pixel that's inactive, so a fractional pixel doesn't exist - but the browser is probably seeing your decimal unit, and is either rounding up

Re: [css-d] decimals in widths?

2007-11-02 Thread David Laakso
Brian Cummiskey wrote: Hi all, I have a dynamic list of items that displays inline in floated div's. I was doing some math on how many, and out of the available space, to split it evenly (as they are aligned center) ie, wrapper is 500px 2 items each gets 250px of space/margin width. i