|
From: Dan W. <da...@wi...> - 2003-04-25 22:23:06
|
On Fri, 2003-04-25 at 17:05, Raymond Irving wrote:
> 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.
Wrong... the elements width is only the width declared, the padding and
border are not added in. In the IE 5(and 6 in quirks mode) box model,
they are added in, which makes it a real pain for css developers, I
know, i design css sites now for the most part. Javascript is just
extra.
> 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
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://www.mail-archive.com/dyn...@li.../
--
Dan Willemsen <da...@wi...>
|