There should already be something in the stylesheet. It's a class called "white-plus-sign". Not the best name, but I think it'll work.
'Shindig'
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
"white-plus-sign" is committed to white. The "transparent" color val works fine with backgrounds that are not white.
Sorry -- I meant that we could change the white-plus-sign to transparent and it would do what it's currently doing as well as the spoiler font stuff.
t edit In fact, if we're talking about letting people change the background color, then we have to change the white-plus-sign class to work with that.
I meant that we could change the white-plus-sign to transparent and it would do what it's currently doing as well as the spoiler font stuff.
Yup. Change white-plus-sign to transparent, substitute the font replacement in quickedit to an enclosing white-plus-sign div. Easy peasy.
Actually, IIRC, you'd want to use a SPAN tag, not a DIV. A DIV puts its contents in its own paragraph, at least in some browsers (I'm too lazy to check the spec). SPAN does not.
eta: I typed:
<font size="-2">I can't "do" this</font>
and I end up with:
I cant do this
the HTML changes to:
<font size='-2' >I cant do this</font >
Dang, tommyrot discovered the scare quotes gobbler I snuck into the code.
Nah, That's a bug.
OK, span is more better than div, for this purpose. Unfortunately, transparent is giving me a hard time for text color attribute. She don't want to work in some browsers. Grr. I'll try to craft an expression() to grab the bgColor, after work.
Crafting expressions makes us browser dependent, doesn't it? If we can control changing the background colour in a style sheet, we can control changing the definition of the spoiler class/style/whatever.
I'd just go that way.
October 25, 2004, 11:02 pm aurelia[795]: ERROR [2] Unknown modifier '2' line 597 of file /home/httpd/vhosts/buffistas.org/httpdocs/classes/post.php
October 25, 2004, 11:02 pm aurelia[795]: ERROR [2] Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/buffistas.org/httpdocs/classes/giles.php:64) line 45 of file /home/httpd/vhosts/buffistas.org/httpdocs/processPost.php
I was trying to post a link to a google results page. Does this mean I was doing something wrong, or that the server choked on something?
The server choked on something weird in the link. If you still have that link around, you could maybe send it to my profile addy, so I can see how to protect us from it happening again.
eta: Got your link. Thanks aurelia.
It looks fine, to me: [link]
... doesn't choke now, so I'm going with the malevolent gamma rays theory.
further edit: ita, that makes sense. I just added the span to the replacement regex, then. There was already a "spoiler" class in the css, so I used it.