http://qs321.pair.com?node_id=537697


in reply to Author-based Stylin'

Instead of replacing those, since sometimes you might want that kind of control, we could just wrap all those things in one extra layer of div or span tags.


___________
Eric Hodges

Replies are listed 'Best First'.
Re^2: Author-based Stylin'
by thor (Priest) on Mar 18, 2006 at 23:17 UTC
    we could just wrap all those things in one extra layer of div or span tags
    IMO, the markup here at the monestary is already pretty heavy. I'm also not a CSS expert, but is there any way to write a rule such that it applies to elements with a set of specified classes? For instance, if I had
    <div class="node-from 57755">Look ma, a div from thor!<div>
    that there'd be a way to specify "apply these rules only to elements that have both class node-from and class 57755"? If so, that's what I'd suggest. That way, if you want to ignore me, you can just put:
    .57755 { display: none; }
    in your CSS and be done with it.

    thor

    The only easy day was yesterday

      I beleive that the reason that wasn't heavily used the last time we revamped the CSS was that not all browsers supported it (and i believe the offender was IE but i could be very very wrong. ;) )


      ___________
      Eric Hodges
        Still, there's the fact that not all types of lines can appear everywhere. For example, you won't see chat lines in a node. Ditto with the RAT lines. At least these three cases are mutually exclusive.

        So, there probably already is, or should be, a container that can identify what kind of line you're seeing. Combining the container class with the author id as a class, should be enough to unambiguously identify the kind of span you're seeing, and it should even work in MSIE.