css & 'span' problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My css includes a style to use for formatting text inline - for emphasis.

This is working fine in IE, but doesn't appear to work in Netscape or
Firefox where the text remains unchanged.

Is this a compatibility issue (ie. span is not recognised is all browsers??)
or am I doing something wrong.

Here's what is in the css:
span.6inline { color: #333333; font-weight: bold;}

This is how it appears in the html:
<p>
sample text <span class="6inline">this text is using span style
6inline</span> sample text<p>

Thanks in advance for any suggestions.
 
Try changing your css to
..6inline { color: #333333; font-weight: bold;}
--




| My css includes a style to use for formatting text inline - for emphasis.
|
| This is working fine in IE, but doesn't appear to work in Netscape or
| Firefox where the text remains unchanged.
|
| Is this a compatibility issue (ie. span is not recognised is all browsers??)
| or am I doing something wrong.
|
| Here's what is in the css:
| span.6inline { color: #333333; font-weight: bold;}
|
| This is how it appears in the html:
| <p>
| sample text <span class="6inline">this text is using span style
| 6inline</span> sample text<p>
|
| Thanks in advance for any suggestions.
|
|
 
This may sound implausable, but I think the problem may be the name of style.

I had named it 6inline because it replicated the h6 style. I changed it
from span.6inline to span.emphasis - and all of a sudden it works
 
Stefan - our posts are crossing over!

Having found a 'solution' I did then try changing the css as you suggested,
but this then affects the whole paragraph, not just the selected text.

Thanks anyhow.
 
Not implausable at all. Custom class names cannot begin with a number.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top