General discussion

Locked

Web Text ignores </FONT and prints bl

By alan.robinson14 ·
Try as I may the html code looks good but always ignores the FONT for text within a table.

The Code is

<p align="center">
<font face="Arial,Helvetica" size=4 color="#ffff00">
Business Hours <=== OK BRIGHT BOLD YELLOW
<br>
</font></p>
<center>
<TABLE cellspace=0 border=0 width=100%>
<tr>
<p align="Center">
<td width=35%></td>
<td width=10%></td>
<td width=55%></td> <=== OK Spacing Good
<tr>
<td><font face="Arial,Helvetica" size=4 color="#ffffff">

  <=== Woopsfrom here all black
</td>
<td> Mon
</td>
<td>09:30   to   16:30</td>
</tr>
<tr>
<td>  </td>
<td> Tue </td>
<td>09:30   to   16:30</td>
</tr>

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Web Text ignores </FONT and prints bl

by bren1ron In reply to Web Text ignores </FONT a ...

The font face, size, and color formatting are enclosed in <td></td> tags. Omit these opening and closing tags.

Instead of:
<td><font face="Arial,Helvetica" size=4 color="#ffffff">
</td>

Write:
<font face="Arial,Helvetica" size=4 color="#ffffff">

When you are ready to close the font tag, use </font>.

Collapse -

Web Text ignores </FONT and prints bl

by alan.robinson14 In reply to Web Text ignores &lt;/FON ...

Sorry tried this, still same problem. Reverted to using Style as below

Collapse -

Web Text ignores </FONT and prints bl

by eBob In reply to Web Text ignores </FONT a ...

I have always found that unless I specify otherwise, the color of text in a table element/cell will always revert to the default, which that of the page (and is almost always always black, since it is rarely otherwise specified.

You can handle this with <td><font...>sometext</font</td> which gets real tiresome. Or you can paly with style sheets.

One approach for this is:

in <HEAD>...
<style type=text/css>
.gold {
color: ffff00;
}
.plain {
color: ffffff;
}
</style>

and inthe <BODY>

<td>
<tr>
<td class="gold">Gold here</td>
<td class="gold">Gold too</td>
</tr>
<tr>
<td class="gold">Gold here, too</td>
<td class="plain">Plain text here</td>
</tr>
</table>

If you want to set a default style for the majority of your <TD>, then declare this style in the <HEAD><style ...>

TD {color: red}

Then by default all text (unless otherwise qualified) in a <TD> will be red.

And so on...search on Google for CSS for plenty of help out therw with CSS. Be warned that older browsers do not fully support CSS. The good news is that your page will default to black text for these users.

Collapse -

Web Text ignores </FONT and prints bl

by alan.robinson14 In reply to Web Text ignores &lt;/FON ...

Many Thanks

Alan

Collapse -

Web Text ignores </FONT and prints bl

by alan.robinson14 In reply to Web Text ignores </FONT a ...

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Forums