W3C home > Mailing lists > Public > www-math@w3.org > October 2005

MathML and CSS don't coexist in XHTML document

From: <iyb@actcom.net.il>
Date: Sat, 29 Oct 2005 15:56:53 +0200
Message-ID: <1130594213.43637fa529f35@webmail.actcom.net.il>
To: www-math@w3.org


I've created two files: an XHTML file, test.xhtml, and a CSS1 file, test.css
(see their listings below). The file test.xhtml contains a simple MathML
formula. The XHTML file is meant to be displayed according to the styling
instructions in test.css .

I've tried viewing test.xhtml with the latest releases of FireFox and Netscape.
The math displays correctly, but the stylesheet instructions do not take effect.
When the postfix of the XHTML file is changed to .html, then the stylesheet
instructions take effect, but the formula is not displayed correctly: it is
displayed like the number 12.

What have i done wrong? What i need to do to have my way? Please enclose sample

Thank you :)



<html xmlns="http://www.w3.org/1999/xhtml">
      <title> test </title>
      <link rel="stylesheet" type="text/css" href="test.css" />

      <math xmlns="http://www.w3.org/1998/Math/MathML">


   font-family: sans-serif;

Received on Saturday, 29 October 2005 15:07:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:36 UTC