HighDots Forums  

<span class> tag problem

alt.html.tags alt.html.tags


Discuss <span class> tag problem in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew
 
Posts: n/a

Default <span class> tag problem - 11-08-2003 , 11:15 AM






Is the <span class> tag not yet accepted in all newer browsers?

The reason I ask that I am using the following code as an example (using a
style that definitely works when used on its own i.e. <p class="lime">) but
it shows up in the normal paragraph style in both IE5 and Netscape 7.0

<p>this is some text in normal paragraph style, <span class="lime">this is
some other text that should be a different colour</span></p>

Anyone know why the other text isn't adopting its new style?

Does it make a difference what type of CSS I am using (i.e. external,
embedded etc)

Thanks in advance

Andrew



Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: <span class> tag problem - 11-08-2003 , 06:33 PM






"Andrew" <andrew-dixon1971MYPANTS (AT) ntlworld (DOT) com> wrote:

Quote:
Is the <span class> tag not yet accepted in all newer browsers?
Virtually all modern browsers know how to parse such tags. The tag, however,
has the defined meaning of meaning nothing. There's nothing a browser needs
to do with <span> markup per se. Your problem is thus elsewhere.

Quote:
The reason I ask that I am using the following code as an example (using
a style that definitely works when used on its own i.e. <p
class="lime">) but it shows up in the normal paragraph style in both IE5
and Netscape 7.0
Why don't you specify the style or, for that matter, post the URL and
consider posting to a style sheet group, since your problem apparently
revolves around CSS rather than HTML tags.

Quote:
p>this is some text in normal paragraph style, <span class="lime">this
is some other text that should be a different colour</span></p
Well, "lime" isn't a particularly clueful class name. If someone tries to
write an aural style sheet, or a monochrome print style sheet, for your
document, how will the name "lime" help in guessing what the intended
_meaning_ is and to select a suitable presentational suggestion to reflect
the meaning?

Quote:
Anyone know why the other text isn't adopting its new style?
You have an error in your style sheet, or in the way you are trying to
associate the style sheet with the HTML document.

Quote:
Does it make a difference what type of CSS I am using (i.e. external,
embedded etc)
Yes. And different errors are possible in different approaches.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.