I am trying to use the link tag to point to an external css file in my xhtml page and using the Nokia MIT (Nokia Mobile Browser simulator) for viewing my pages and I am seeing something really interesting which I was hoping someone would be able to explain.
When I request a page with the following xhtml markup
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<title></title><link type="text/css" rel="stylesheet" href="default.css"/>
<body><form id="myForm" method="post" >
<span class="Style1">Form1 Should appear italicized, not bold and green
<input type="submit" name="simpleCmd" value="some button"/></div></form></body>
I tried your code with the Toolkit and NMB 3.0.1 and it indeed didn't apply the style to the span tag. It however did work with 6590 simulator (with no colors of course) and 9210i Communicator. So.. it's probably a bug (or a feature) of NMB 3.0.1. According to various CSS style guides, it's recommend to start class names with lowercase letters.