ternto333
01-19-2008, 02:17 PM
I have embedded spans with different properties which looks like this:
<span style="font-weight:bold;color:green;text-decoration: underline">
This is bold, green, underlined text
<span style="color:#617094;text-decoration: none;font-weight: none;">
this is gray, underlined bold text
</span>
</span>
I would like the embedded span tag to overwrite the parent span properties, but maybe I don't understand the CSS priorities. It just doesn't make sense why it would overwrite the color of the text, but not the underlining or bolding. This was done on both IE 6, Firefox 2, and Opera.
<span style="font-weight:bold;color:green;text-decoration: underline">
This is bold, green, underlined text
<span style="color:#617094;text-decoration: none;font-weight: none;">
this is gray, underlined bold text
</span>
</span>
I would like the embedded span tag to overwrite the parent span properties, but maybe I don't understand the CSS priorities. It just doesn't make sense why it would overwrite the color of the text, but not the underlining or bolding. This was done on both IE 6, Firefox 2, and Opera.