Try away! No difference at all between span.de and .de, it's just less code to write. The only time you need to include the word span and the dot before the code is when the span is supplementary to it.
For instance, on LJ and DW, the CSS for our user icons is .ljuser, but there's also a span around them in many page views that you can style separately. In that case you would try something like span.ljuser {background: red}. If you just want to style the icon, then you'd leave off the span and write something like .ljuser {height: 13px}.
In other words (editing after realizing why this is confusing, and that my explanation was not terribly clear) in my example, .ljuser controls the user-icon image only, while span.ljuser can control the background for that image and the image itself, if you like. Hope that helps. :)
no subject
Date: 2010-12-30 11:27 pm (UTC)For instance, on LJ and DW, the CSS for our user icons is .ljuser, but there's also a span around them in many page views that you can style separately. In that case you would try something like span.ljuser {background: red}. If you just want to style the icon, then you'd leave off the span and write something like .ljuser {height: 13px}.
In other words (editing after realizing why this is confusing, and that my explanation was not terribly clear) in my example, .ljuser controls the user-icon image only, while span.ljuser can control the background for that image and the image itself, if you like. Hope that helps. :)