I also had a lot of problems with NS layers not inheriting styles. I
discovered several things that effected this:
1. I had some badly constructed HTML (NS likes all tags to be closed
and nested correctly)
2. I had a badly formatted stylesheet.
3. If a table is the only object in a layer, NS likes to have <P> tags
around it.
This is also true for documents loaded into a loadpanel - if they are
badly formed it stuffs up styles not just for that layer, but others
also. Once I fixed all of these I was able to use <span
class="blahblah"> tags within layers. Incidentally some versions of NS4
will fail to inherit styles once you get to too many nested layers.
I just used the HTML validator at
http://validator.w3.org/file-upload.html and the css validator at
http://jigsaw.w3.org/css-validator/validator-upload.html.
Don't know if this helps, but it seemed to work for me.
Cheers
Chris
-----Original Message-----
From: Dave Edelhart [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 23 June 2001 5:42 AM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] (no subject)
Actually its even worse than that: even inline styling doesn't work
in Netscape inside layers. In this situation you have to use NON
css-style HTML -- <FONT> and such; check out the label widget's use
of conventional HTML font styling -- the reason is the Netscape
incompatibility.
// MY ORIGINAL RESPONSE //
You are running into a DOM issue: since the layers are seperate
"documents" in Netscape, you must include the style sheet link WITHIN
EACH LAYER for it to work. Really you are better off styling the text
with inline style (style="text-size: 10pt...") the "old fashioned
way." (meaning, practically speaking, in many cases you might as well
use conventional HTML)
// ORIGINAL QUESTION //
Doug, thanks, but even this is not working for me. I'm testing inside
a table in Netscape:
...
<td><span class="someClass">some text</span></td>
...
where the table itself is inside a DynLayer. The class has no effect
in Netscape. Any ideas?
=====
=======================
'Providing year 2001 consultations at rates as low as $5,000 an hour.'
Dave Edelhart
Director of Operations, Manatee Bay Productions
www.manateebay.com
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help