Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

<PRE> Fixed width

0 views
Skip to first unread message

Bob Phillips

unread,
Oct 28, 2002, 8:24:31 AM10/28/02
to
Hi,

I am using a <PRE> element to display code on several web pages. I use CSS
to define the look and feel of these elements as you would expect. This is
my CSS def

pre {
margin: 1em;
font-family: Verdana;
font-size: 8pt;
background-color: #efefef;
border-width: 2;
border-style: double;
border-color: black;
width: 75%
}

The box around the code expands to fir the width of the line, and so I have
several different widths on the page. Could anyone tell me what I need to
add to get the enclosing box to be a pre-determined size.

TIA

--
Bob Phillips
... looking out across Poole Harbour to the Purbecks


0 new messages