Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

generated pre tags

Posted on 2002-06-05
6
Medium Priority
?
218 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 400 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

971 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