On 21/03/2002 11:59, "thelist-request at lists.evolt.org" <thelist-request at lists.evolt.org> wrote: > I was suggesting something like: > > if (document.all) { > document.write('<link rel="stylesheet" href="/styles/ie.css" > type="text/css" />'); > } > else if (document.layers) { > document.write('<link rel="stylesheet" href="/styles/ns4.css" > type="text/css" />'); > } Bad Bad bad! Mozilla/ Netscape 6 don't use neither document.all (IE proprietary) nor document.layers (Netscape 4.x proprietary), so you end up not missing one of the browsers that supports CSS layouts the best.... For a better approach, see: http://mozilla-evangelism.bclary.com/fep/ Regards, Shoshannah Forbes http://www.forbes.co.il