in reply to Re: Re: A meta Style question
in thread A meta Style question
which should show up as red text on your default background, followed by red text on a black background. here it is:<div style="color:red;">i see some red text <span style="color:red;background:black">and i want to paint it black< +/span> </div>
as you can see, it didn't work.
in fact, if you view the page source, you should see something like:
perlmonks has a scrubber that removes illegal (as deemed by those most holy) attributes from html tags in the nodes you post.here it is:<P> i see some red text and i want to paint it black <P>
currently, the style attribute is not allowed. nor are div or span tags. so you can't use CSS inline at perlmonks. but all is not lost. you can use html attributes, like <font>, etc. here's an example, one of saint grinder's sigs...
produces: --<SMALL>--</SMALL><H5><TT><FONT color="#cf1178">g</FONT> <FONT color="# +bd2188">r</FONT> <FONT color="#a73598">i</FONT> <FONT color="#904da7" +>n</FONT> <FONT color="#7866b5">d</FONT> <FONT color="#6080c2">e</FON +T> <FONT color="#4999ce">r</FONT></TT></H5>
this might be a solution for you. but you can't guarantee users will see what you want them to. CSS can override any tag, including <font>. my stylesheet overrides the font tag, so i see dark blue text on a light blue background.
there are a few things, like font tags, that you can modify. feel free to experiment. if you see something you like, view the page source, and practice code reuse.
Update: i *totally* forgot to link to the approved html tags! thanks for the catch, tye!
~Particle
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Approved HTML tags (Re: A meta Style question)
by tye (Sage) on Feb 18, 2002 at 18:45 UTC | |
by Masem (Monsignor) on Feb 18, 2002 at 19:06 UTC |