Minimize HTML code on table

G

Guest

Hello. I have a big data table in FP2002. My client does not have FP, but
wants to be able to edit the HTML himself. There are too many tags in it for
him to do so efficiently without the use of FP. For each and every row, there
is the following code:

<tr height="17" style="height:12.75pt">
<td height="17" style="height: 12.75pt; color: black; font-family:
Arial, sans-serif; font-size: 10.0pt; font-weight: 400; font-style: normal;
text-decoration: none; text-align: general; vertical-align: bottom;
white-space: nowrap; border: medium none; padding-left: 1px; padding-right:
1px; padding-top: 1px">
<font face="Verdana" color="#FFFFFF">98°</font></td>
<td style="color: black; font-family: Arial, sans-serif; font-size:
10.0pt; font-weight: 400; font-style: normal; text-decoration: none;
text-align: general; vertical-align: bottom; white-space: nowrap; border:
medium none; padding-left: 1px; padding-right: 1px; padding-top: 1px"
width="305">
<font face="Verdana" color="#FFFFFF">I do (cherish you)</font></td>
</tr>

What I need to know is how to remove all this excess code. There are a few
rows where the text size is larger to indicate a new section, but it's all
part of the same table. Can anyone help me with this? I need to get back to
him today.

Thanks,
Summarah
 
M

Murray

Most of the "excess code" is presentational. You could eliminate it by
using CSS on that page.

Thus, if you define a stylesheet containing the following rule -

td.special { height:17; color:white; font-family:Verdana, sans-serif;
font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration:
none; text-align: general; vertical-align: bottom; white-space: nowrap;
border: medium none; padding-left: 1px; padding-right: 1px; padding-top:
1px; }

then your HTML markup would be reduced to this -

<tr height="17" style="height:12.75pt">
<td class="special">98°</td>
<td class="special" width="305">I do (cherish you)</td>
</tr>

Which is one of the strong reasons for using CSS.

I must say I disagree with using points for anything on a web page, however.
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

hopefully your client will be editing the html after you are finished with the design right? :)
 
G

Guest

Sorry it took so long to post this reply. That is the plan, which is why I
want to minimize the code so he doesn't have to sift through a whole bunch of
unnecessary stuff that will probably seem like nonsense to him. Also, if he
wants to add more items to the table, I'm trying to prevent him from making
mistakes and wreaking havoc on the beautiful web site that I have designed
for him. =)

Thank y'all. I'll see if I can manage to pull it off using the CSS tip that
Murray posted.
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

He's gonna mess it up, you know that right? :)

Maybe ContentSeed will work for you...it's an easy content management thingie that Chris Leeds (contributor here) wrote.

http://www.contentseed.com/
 
G

Guest

Yeah ... I know. But a girl can dream, can't she? =)

ContentSeed looks very interesting. I think I might give it a try. Thanks
for pointing me to it. Who knew there were so many cool tools out there!
Especially this one. Thanks again.
 
?

=?Windows-1252?Q?Rob_Giordano_\=28Crash_Gordon=AE\

Yer welcome. Good luck with the client.


Summarah said:
Yeah ... I know. But a girl can dream, can't she? =)

ContentSeed looks very interesting. I think I might give it a try. Thanks
for pointing me to it. Who knew there were so many cool tools out there!
Especially this one. Thanks again.
 

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