Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Author-based Stylin'

by thor (Priest)
on Mar 18, 2006 at 23:17 UTC ( #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.


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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2021-09-23 00:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found