Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Author-based Stylin'

by thor (Priest)
on Mar 18, 2006 at 23:17 UTC ( [id://537702]=note: print w/replies, xml ) Need Help??


in reply to Re: Author-based Stylin'
in thread Author-based Stylin'

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

Replies are listed 'Best First'.
Re^3: Author-based Stylin'
by eric256 (Parson) on Mar 19, 2006 at 02:08 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://537702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found