Styling XMP Tags

They have: 238 posts

Joined: May 2002

I'm having a problem with *XMP* tags that I'm using on a tables tutorial. The problem is that there is a big gap between the text above the tags and the text contained in the tags, an example:

This is the code:

It comes out like this:

This is the code:

Any way I can change the spacing between the text "This is the code" and the opening and closing table tags?

Go here for an example:
http://silo.newezone.com/tutorials/tables.php

*XMP tags are used to disclude text from being processed as html*

Busy's picture

He has: 6,151 posts

Joined: May 2001

don't waste your time with xmp, it never had full support and has been dropped as one.
the answer i believe is on same line, but again its not widely supported anymore
use

 or change the < to < and > to >

[edit]just a note on your tutorial, dont teach content on seperate lines, its bad coding and has issues with certain browsers. also to put a background in a table it isnt "backgroundimage" its just background[/edit] 

They have: 238 posts

Joined: May 2002

I'd tried to use the

 tag but none of the code inbetween the pre tag shows, it just renders as normal html..?

Thanks for the tip on the tutorial, I'll fix that up asap. 

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.