\define color_picker(label,field)
<tr>
<td>
$label$
</td>
<td>
<$edit-text field="$field$" type="number" class="custom_select"/>
</td>
<td style="background-color: rgb(0,0,0);">
<div style="background-color: rgb({{!!$field$}}, {{!!$field$}},
{{!!$field$}});text-align: center;">{{!!$field$}}
</div>
</td>
</tr>
\end
I've finally discovered wikifying CSS, and I think I love it. I'm trying
to make a tiddler that contains some CSS controlling forms and the code
above is one of the macros I use. I'm trying to get a segment of the table
to turn the same color (grayscale) as the value in the $field$ parameter.
For some reason, it is not working as I have it typed out here, but it
looks (to me) like it should.
Does anyone know if I'm doing something wrong, or a better method of doing
so?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/ef4122ee-0a70-49ef-87b5-37b07fe4beba%40googlegroups.com.