Solved

generated pre tags

Posted on 2002-06-05
6
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS - Centering an image 2 48
html5 1 45
Excel to HTML macro with inserting lines 14 51
transfer content to new site design 7 49
This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 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