[thelist] <base> and DOCTYPE

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Nov 15 08:01:01 CST 2002


>I am having a strange problem :
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
><head>
><base href="http://server/base/" />
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
><link rel="stylesheet" href="css/screen.css" type="text/css" />
><title>home</title>
></head>
>
>the above works fine in explorer and opera but mozilla (1.0) fails to
>recognise the style sheet.
>
><base href="http://server/base/" />
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
><head>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
><link rel="stylesheet" href="css/screen.css" type="text/css" />
><title>home</title>
></head>
>
>when i move the <base> tage before the doctype it works in mozilla, but
>unfortunately doesnt validate.
>
>when i remove the <base> altogether and change the <link> stylesheet to an
>absolute path (/root/base/....) ,moz again doesnt pickup the style sheet !
>
>Any ideas ?

What happens when you remove the doctype altogether?

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
New: Interview by Carole Guevin:
http://netdiver.net/interviews/peterpaulkoch.php
--------------------------------------------------


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail




More information about the thelist mailing list