Currently you could use the private method $.curCSS(element, property) to get the value contained within the style sheet. Just using .css() will use the private method $.css(element, property) which when looking for height or width it will calculate it.
This is something on the table of proposals to be changed for 1.1. That calling .css() should always return what is in the style sheet or inline style attribute. Then the methods .height() and .width() would do the calculations. Nothing has been decided on this as of yet. -- Brandon Aaron On 1/4/07, Dave Methvin <[EMAIL PROTECTED]> wrote: > I know this was asked before but I don't think it was answered. > > Is there a way to determine if a width was applied to an element? I can get > the _current_ width via .css() or .curCSS and let's say it's 421px. I need > to know whether that came from a inline or stylesheet rule "width: 421px" or > that just happens to be the width of the parent. The inline part is easy, > just look at el.style.width. I am not sure how to tell if any stylesheet > rule applies though. > > > > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
