Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Add CSS class for signatures?

by chromatic (Archbishop)
on Sep 05, 2003 at 17:47 UTC ( [id://289304]=note: print w/replies, xml ) Need Help??


in reply to Re: Add CSS class for signatures?
in thread Add CSS class for signatures?

It can't completely be enforced, but I've generated a patch for the reply box that puts the div tags around the signature when it pre-populates the reply box. (addnewnoteform, for members of pmdev.)

Replies are listed 'Best First'.
Re^3: Add CSS class for signatures? (repatch)
by tye (Sage) on Sep 08, 2003 at 05:40 UTC

    Like at least several other monks (that I know of), I have some "template" information in my signature. With that patch, I'd end up typing my entire node content within the "sig" unless I remember (every single time I post) to move things around.

    But I think that problem can be addressed by a minor improvement to the patch: Only add the tags if they aren't already present in the signature. Then I can update my signature one time to incorporate the new tags (which I can cut-n-paste from a quick "preview") and never have to move parts after that.

    Other than that, I worry that perhaps we need to think a little more about the tag. I'm anything but a CSS expert, so I'll ask some dumb questions. I guess div is a better choice than span since a signature really shouldn't be an in-line entity. Someone already gave an example of apply custom CSS to all sigs. Is that type of wildcarding common in browsers supporting CSS? Or should we have both a per-user tag and a all-sigs tag? Perhaps something like <div class="pmsig" id="pmsig-22609">?

    I'd rather get that right the first time than have to worry about backward compat when we realize we didn't as good as we could.

    Thanks for the idea, adrianh, for the patch, chromatic, and for the future feedback, y'all.

                    - tye
      Like at least several other monks (that I know of), I have some "template" information in my signature. With that patch, I'd end up typing my entire node content within the "sig" unless I remember (every single time I post) to move things around.

      Good point.

      Is that type of wildcarding common in browsers supporting CSS?

      It works with Safari (so KDE variants should be okay) and Moz. Not tried on MSIE.

      Perhaps something like <div class="pmsig" id="pmsig-22609">?

      Unfortunately this wouldn't work since it would be possible to have multiple occurances of a single user signature in one HTML page.

      If we're worried about supporting browsers maybe something like:

      <div class="pmsig"><div class="pmsig-NNNN">
Re^3: Add CSS class for signatures?
by adrianh (Chancellor) on Sep 06, 2003 at 17:10 UTC
    What a nice man!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-21 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found