Two
 Selectors

Giganews Newsgroups
Subject: Two <PRE> Selectors
Posted by:  Buck Turgidson (jc_…@hotmail.com)
Date: Thu, 2 Dec 2004

I want to have a css with 2 PRE styles, one bold with large font, and
another non-bold and smaller font.

I am new to CSS (and not exactly an expert in HTML, for that matter).  Is
there a way to do this in CSS?

<STYLE TYPE="text/css">
    pre{ font-size:xx-large;
          font-family:monospace;
          font-weight:bold;text-decoration:none;
        }
</STYLE>

<STYLE TYPE="text/css">
    pre2{ font-size:medium;
          font-family:monospace;
          white-space:pre
        }
</STYLE>

Replies