Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:38 AM
GriffithsJ
Guest
 
Posts: n/a
Default Pre-formatted text

Hi

I have been given some text that needs to be displayed on a web page. The
text is pre-formatted (includes things like lists etc) and displays okay if
I wrap it using the <pre/> tag. However, the font used is rather "naff" and
looks too different to the rest of my web page.

I'm not sure how I can (or even whether I can) override the font used with
the <pre/> tag. If not, is there another tag I can use to display
pre-formatted text?

Thanks

Griff


  #2  
Old July 19th, 2005, 11:38 AM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: Pre-formatted text

<pre style='font-family:verdana'>

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"GriffithsJ" <GriffithsJ_520@hotmail.com> wrote in message
news:eW93a9l6DHA.2480@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi
>
> I have been given some text that needs to be displayed on a web page. The
> text is pre-formatted (includes things like lists etc) and displays okay[/color]
if[color=blue]
> I wrap it using the <pre/> tag. However, the font used is rather "naff"[/color]
and[color=blue]
> looks too different to the rest of my web page.
>
> I'm not sure how I can (or even whether I can) override the font used with
> the <pre/> tag. If not, is there another tag I can use to display
> pre-formatted text?
>
> Thanks
>
> Griff
>
>[/color]


  #3  
Old July 19th, 2005, 11:38 AM
Chris Barber
Guest
 
Posts: n/a
Default Re: Pre-formatted text

Just apply your own CSS to the <pre> tag.

<style type="text/css">
PRE {font-size: 0.9em; color: blue; font-family: Arial}
</style>

Place the CSS above the first usage of <pre>.

Alternatively do a search and replace for CRLF and replace with <br/> and
then just wrap it all in a <p> element.

Hope this helps.

Chris.

"GriffithsJ" <GriffithsJ_520@hotmail.com> wrote in message
news:eW93a9l6DHA.2480@TK2MSFTNGP12.phx.gbl...
Hi

I have been given some text that needs to be displayed on a web page. The
text is pre-formatted (includes things like lists etc) and displays okay if
I wrap it using the <pre/> tag. However, the font used is rather "naff" and
looks too different to the rest of my web page.

I'm not sure how I can (or even whether I can) override the font used with
the <pre/> tag. If not, is there another tag I can use to display
pre-formatted text?

Thanks

Griff



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles