On Sun, 8 Aug 2004 07:33:33 -0400, Alan Illeman wrote:
[color=blue]
> How do I set several different properties for PRE in
> a CSS stylesheet, rather than resorting to this:[/color]
Several ways, the easiest is if there are no other
<PRE> sections..
<head>
....
<style type='text/css'>
pre {
// this is a default for <PRE> sections AFAIU, redundant..
// font-family:monospace;
font-size:0.95em;
width:40%;
// AFAIR, you can override *just* the color, see below..
border:black 2px solid;
}
</style>
</head>[color=blue]
>
> <BODY>
>[/color]
<PRE STYLE="border-color:red;[color=blue]
> color:red;
> background-color:#FBB; ">
> This is red
> </PRE>[/color]
etc..
[ ..And why are you presuming you can manually space
text so that it fits 40% of the width of the page?
(If that is what the spaces are for) ]
[color=blue]
> (the above is just an example)[/color]
...hmmm. I always get suspicious when people pose
arbitrary examples that they think demonstrate the
problem/challenge they face. An *actual* page with
a 'real World(WideWeb)' example is generally better.
For further information see..
<http://www.spartanicus.utvinternet.ie/help_us_help_you.htm>
...or my own variant more geared to Java/Javascript
<http://www.physci.org/codes/sscce.jsp>
HTH
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology