Date: 2010-12-30 11:27 pm (UTC)
marahmarie: (M In M Forever) (0)
From: [personal profile] marahmarie
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. :)
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Dreamwidth style system discussion

June 2025

S M T W T F S
12345 67
891011121314
15161718192021
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 06:53 am
Powered by Dreamwidth Studios