From: Raymond I. <xw...@ya...> - 2003-04-25 22:05:52
|
Hello Everyone, I'm currently trying to get the setBorder() feature to work in DOM browsers the way it works in IE. According to the CSS1 specs the box width includes padding, margin border and the element's width. It would seems that DynLayers were design to only work with the elements width. One quick solution would be to set the actual element width to be less than twice the size of the border. For example in dom browsers we would something like: p.setSize = function(w,h) { ..... if (cw) this.css.width = (this.w-(this._border*2))||0; if (ch) this.css.height = (this.h-(this._border*2))||0; .... } What do you think? Any other suggestions? Can we do this? -- Raymond Irving __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |