chazzy
04-20-2009, 02:10 PM
I have a span defined like this:
<span style="background-image:url('right.png');background-repeat:no-repeat;padding:2px 2px 2px 2px;"></span>
And it displays perfectly.
When I change it to have a stylesheet define as:
.rightTab { background-image:url('right.png');background-repeat:no-repeat;padding:2px 2px 2px 2px; }
and the span defined as:
<span class="rightTab"></span>
The style is lost. No other tags/styles are in place. What gives?
<span style="background-image:url('right.png');background-repeat:no-repeat;padding:2px 2px 2px 2px;"></span>
And it displays perfectly.
When I change it to have a stylesheet define as:
.rightTab { background-image:url('right.png');background-repeat:no-repeat;padding:2px 2px 2px 2px; }
and the span defined as:
<span class="rightTab"></span>
The style is lost. No other tags/styles are in place. What gives?