Of course, IE7 doesn't recognize that escape character - I would imagine IE6 is the same - and so totally ignores the css rule. :-(

J

On Apr 22, 2008, at 2:05 PM, Julian Wood wrote:

Sweet! That is a good solution.

J

On Apr 22, 2008, at 1:57 PM, Jason Lea wrote:

or you could try looking at the css spec... 
http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
and use the escape character \  :)

example:

<html>
<head>
<style type="text/css">
 #foo\:bar { color: red;}
</style>
</head>
<body>
<p id="foo:bar">fubar</p>
</body>
</html>

Julian Wood wrote:
5.0.12-SNAP

If I make a form and put a form label combo in it:

<form t:type="Form">
<div>
 <label t:type="Label" t:for="username" />
<input t:type="TextField" t:id="username" type="text" maxlength="15"/>
</div>
</form>

It is rendered out like this:

<label for="username" id="username:label">Username:</label>
<input id="username" maxlength="15" name="username" type="text">

How can I target the the label id with a css rule?

#username:label {
        color: red;
}

is illegal - well it is a pseudo-class, like a:hover. I realize there are other ways to get around this - my point is shouldn't tapestry be using something other than a colon in the identifier?

J

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jason Lea



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to