Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Add CSS class for signatures?

by valdez (Monsignor)
on Sep 05, 2003 at 16:50 UTC ( #289278=note: print w/replies, xml ) Need Help??


in reply to Add CSS class for signatures?

We can't enforce that wrapping you suggested, so is this a request to every monk? I wrapped my signature with <div class="pmsig">, hope this helps :)

Ciao, Valerio

Replies are listed 'Best First'.
Re: Re: Add CSS class for signatures?
by chromatic (Archbishop) on Sep 05, 2003 at 17:47 UTC

    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.)

      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">
      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://289278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2023-03-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (62 votes). Check out past polls.

    Notices?