Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Arnoud Oortwijk
October 23, 2003, 11:11 am
rate this thread
<table border="1" width="256">
<td width="256"> <xmp><script
I want to show everything between <xmp> and </xmp> in other words I don't
than 256 and the text to be wrapped.
How can this be done?
All help will be greatly appreciated.
Re: Wrapping text between
I'd rather not...
Looks like you're using a table for layout. Don't.
<xmp> was marked as obsolete in HTML 2.0 and doesn't exist at all in
modern versions of HTML. You can not expect browsers to support <xmp>
for ever. The code above doesn't stop Opera 7, for example, from
<div style="width: 256px; border: 1px solid black; padding:
Obviously you can move the styles into a stylesheet.
The <code> element just marks this up as computer code - most browsers
will display it in a monospaced font, but otherwise it will have no
effect on rendering (so unlike with <xmp> or <pre> the text will
Including a few spaces in the code will also help it to wrap better.
Converting the < to < makes them text and not the start of a tag.
There's no actual need to convert > to > in most cases (including
this one) but it does no harm either and there may be browser bugs out
there that make it better safe than sorry to do so.
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor