Condensing HTML

S

Steve H

How would I use the Style attribute to condense the
following HTML generated by MS Excel 97? Or is the Style
attribute appropriate? There's a lot of repetition here:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>AEProducts_offroad</title>
</head>

<body>

<h1><center>Sheet1</center></h1>
<!-- The following table was generated by the Internet
Assistant Wizard for Microsoft Excel. -->
<!-- ------------------------- -->
<!-- START OF CONVERTED OUTPUT -->
<!-- ------------------------- -->
<table border="1">
<tr valign="top">
<td align="center"><font face="Arial" size="-1">Part
#</font></td>
<td align="left"><font face="Arial" size="-
1">Description (March 11, 2004)</font></td>
<td align="center"><font face="Arial" size="-
1">Qty</font></td>
<td align="center"><font face="Arial" size="-1">US$
retail</font></td>
<td align="left"><font face="Arial" size="-1">Off
Road</font></td>
<td align="left"><font face="Arial" size="-1">On
Road</font></td>
<td align="left"><font face="Arial" size="-
1">Oval</font></td>
<td align="left"><font face="Arial" size="-
1">Early_Kits</font></td>
</tr>
<tr valign="top">
<td align="center"><font face="Arial" size="-
1">200</font></td>
<td align="left"><font face="Arial" size="-1">Pt 12
turn single modified
motor</font></td>
<td align="center"><font face="Arial" size="-
1">1</font></td>
<td align="center" style="vnd.ms-
excel.numberformat:$#,##0.00_)[semicolon][Red]
($#,##0.00)"><font face="Arial" size="-
1">$95.00</font></td>
<td align="right"><font face="Arial" size="-
1">&nbsp;</font></td>
<td align="right"><font face="Arial" size="-
1">&nbsp;</font></td>
<td align="right"><font face="Arial" size="-
1">&nbsp;</font></td>
<td align="right"><font face="Arial" size="-
1">&nbsp;</font></td>
</tr>
 
C

chris leeds

you would need to learn a little .css but there is a tool called topstyle
from www.bradsoft.com that will sort of teach you as it does the work for
you. ;-)

basically you'd want to remove all the <font> tags while leaving the <td>
tags and everything else the way they are. then you'd decide what style of
font and background etc. that you want on each cell, row, etc
make a class on the style sheet and then mark the table up like <td
class="something">

HTH
 
S

Steve H

Thanks for the help. I understand what you are saying.
I'll get to it.
-----Original Message-----
you would need to learn a little .css but there is a tool called topstyle
from www.bradsoft.com that will sort of teach you as it does the work for
you. ;-)

basically you'd want to remove all the <font> tags while
leaving the said:
tags and everything else the way they are. then you'd decide what style of
font and background etc. that you want on each cell, row, etc
make a class on the style sheet and then mark the table up like <td
class="something">

HTH

--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


How would I use the Style attribute to condense the
following HTML generated by MS Excel 97? Or is the Style
attribute appropriate? There's a lot of repetition here:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>AEProducts_offroad</title>
</head>

<body>

<h1><center>Sheet1</center></h1>
<!-- The following table was generated by the Internet
Assistant Wizard for Microsoft Excel. -->
<!-- ------------------------- -->
<!-- START OF CONVERTED OUTPUT -->
<!-- ------------------------- -->
<table border="1">
<tr valign="top">
<td align="center"><font face="Arial" size="-1">Part
#</font></td>
<td align="left"><font face="Arial" size="-
1">Description (March 11, 2004)</font></td>
<td align="center"><font face="Arial" size="-
1">Qty</font></td>
<td align="center"><font face="Arial" size="-1">US$
retail</font></td>
<td align="left"><font face="Arial" size="-1">Off
Road</font></td>
<td align="left"><font face="Arial" size="-1">On
Road</font></td>
<td align="left"><font face="Arial" size="-
1">Oval</font></td>
<td align="left"><font face="Arial" size="-
1">Early_Kits</font></td>
</tr>
<tr valign="top">
<td align="center"><font face="Arial" size="-
1">200</font></td>
<td align="left"><font face="Arial" size="-1">Pt 12
turn single modified
motor</font></td>
<td align="center"><font face="Arial" size="-
1">1</font></td>
<td align="center" style="vnd.ms-
excel.numberformat:$#,##0.00_)[semicolon][Red]
($#,##0.00)"><font face="Arial" size="-
1">$95.00</font></td>
<td align="right"><font face="Arial" size="-
1"> </font></td>
<td align="right"><font face="Arial" size="-
1"> </font></td>
<td align="right"><font face="Arial" size="-
1"> </font></td>
<td align="right"><font face="Arial" size="-
1"> </font></td>
</tr>


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top