Solved

generated pre tags

Posted on 2002-06-05
6
209 Views
Last Modified: 2010-04-09
i am using a guestbook generating tool which automatically encloses the text in pre tags - and there is no way for these to be removed. is there anyway i can override these tags eg by setting width of table

 <TABLE><!--GUESTBOOK ENTRIES-->
<!--this bit is the generated html-->
<tr>
  <td align=right valign=top><b>date :  </b></td>
  <td align=left valign=top><pre>Tue Jun  4 19:48:58 2002</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>email :  </b></td>
  <td align=left valign=top><pre>me@email.co.uk</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>name :  </b></td>
  <td align=left valign=top><pre>desc</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>submit :  </b></td>
  <td align=left valign=top><pre>Submit comments</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>comments :  </b></td>
  <td align=left valign=top><pre>hg hghsghsg hsgd hsgh shghs hghg shgd
jhjhjhjhjhjh jh jhj hj jhjhsjahja
kjkj jkjkj kjakajksaj sk j kjkaj kj</pre></td>
</tr>
0
Comment
Question by:macintar
6 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 100 total points
ID: 7055986
No you cannot. That is why it is a pre tag, they are MEANT to be like that.

For IE you might want to try the following:

<script language="javascript">
function document_onload()
{
document.body.innerHTML = document.body.innerHTML.split("<pre>").join("<table width=200><tr><td>").split("</pre>").join("</td></tr></table>")
}
window.onload=document_onload;
</script>
0
 
LVL 18

Expert Comment

by:bruno
ID: 7056419
why do you want to override the tags?  is the text getting pushed out to far?
0
 
LVL 18

Expert Comment

by:bruno
ID: 7146397

Hello,

This question has been open for quite a while now and needs to be wrapped up.

EXPERTS: If any of the experts could come back and post any suggestions as to how they feel this could be wrapped up (delete, 0 PAQ, award points, etc), I'm sure the moderators would appreciate it.  If you feel you deserve points here, but don't care to respond, the question might very well get DELETED.

ASKER:  Please return and finalize this question.  Abandoning a question is in violation of the member agreement.

Please do NOT accept this comment as an answer, as I am simply trying to alert those involved that the question is still open.

Thank you,

BRUNO
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 22

Expert Comment

by:CJ_S
ID: 7148477
me
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7182443
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to CJ_S

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7182881
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question