when i have something's css set to auto, and try to get its value from within FF3.5, mine returns nothing-- not even 0px.
On Aug 31, 3:33 pm, phpn1b <alv...@gmail.com> wrote: > anyone? > > On Aug 25, 4:46 pm, phpn1b <alv...@gmail.com> wrote: > > > I have a simple test page with a div where the left and right margins > > are set to auto. The div has a width and when viewed it's centered on > > the page. When I try to read the left or right margin with jQuery it's > > returned as "0px" instead of auto. I'm trying to add a div to a page > > and set the new div's margin to match an existing div's margin, but > > without being able to read "auto", it's failing. My tests using alert($ > > ('#container').css('margin-left')); and alert($('#container').css > > ('marginLeft')); yielded the same results.