font size and weight within a table

C

charles cashion

I have tried to change the font size and family
of the text elements within a <table> ... </table>
It has ignored all my suggestions.
Can somebody point me to an explanation?
Tnx,
Charles
 
J

jojo

charles said:
I have tried to change the font size and family
of the text elements within a <table> ... </table>
How?

It has ignored all my suggestions.

What's "it"?
Can somebody point me to an explanation?

No, nobody can as long as you do not post an URL or at least an example.
 
C

charles cashion

OK guys, let's try this again...

I have tried to change the font size and family
of the text elements within a <table> ... </table>
"IT" is Firefox 1.5.0.7 browser.

After some trial and trial and trial and trial,
here is where I am now...

<html>
<head>
<style>
td {font-family: arial, verdana, sans-serif; size=+1; }
</style>
<body>
<!-- font face="comic sans ms" size=+1 -->
<!-- span style='font-size: 10.0pt; font-family: Arial' -->
<!-- span style="font-size: 13.5pt; font-family: Arial; color: navy;" -->
<!-- span style="font-size: 14pt; font-family: san-serif; color:
navy;" -->
<!-- span style="font-size: 18pt; font-family: san-serif; " -->

<table>
<tr><td>07jan70</td><td> Sam Smith </td></tr>
<tr><td>01jan72</td><td> John Johnson </td></tr>
</table>

</body>
</html>

None of the <font...> or <span ...> statements influenced the
text within the table, so I changed them to comments. I kept
them as comments to remind me what does not work.

Since I first posted my question, I googled for font-family and
came up with the "td {font...". The "td {font... " has some
influence on the teXt within the table, but it (the resultant
font) is very weak. If nothing else, I would like to specify
bold, but must I install <b> within every <td> element?

Tnx,
Charles
 
J

Jonathan N. Little

charles said:
OK guys, let's try this again...

I have tried to change the font size and family
of the text elements within a <table> ... </table>
"IT" is Firefox 1.5.0.7 browser.

After some trial and trial and trial and trial,
here is where I am now...


Keep trying. You need to read up on the syntax of CSS.
http://www.w3.org/TR/CSS21/syndata.html
<html>
<head>
<style>
td {font-family: arial, verdana, sans-serif; size=+1; }
^^^^^^^^
This is not valid CSS, should be "font-size: 1.2em;" or something similar
</style>
<body>
<!-- font face="comic sans ms" size=+1 -->
<!-- span style='font-size: 10.0pt; font-family: Arial' -->
<!-- span style="font-size: 13.5pt; font-family: Arial; color: navy;" -->
<!-- span style="font-size: 14pt; font-family: san-serif; color:
navy;" -->
<!-- span style="font-size: 18pt; font-family: san-serif; " -->

<table>
<tr><td>07jan70</td><td> Sam Smith </td></tr>
<tr><td>01jan72</td><td> John Johnson </td></tr>
</table>

</body>
</html>

None of the <font...> or <span ...> statements influenced the
text within the table, so I changed them to comments. I kept
them as comments to remind me what does not work.

Yeah, don't use the FONT element and also don't use "pt" Points are for
printing not display...
Since I first posted my question, I googled for font-family and
came up with the "td {font...". The "td {font... " has some
influence on the teXt within the table, but it (the resultant
font) is very weak. If nothing else, I would like to specify
bold, but must I install <b> within every <td> element?

For FONT to work you should put a FONT element within each TD element
and the FONT element requires both an opening and closing tag and I do
not see any closing tags...but again DON'T use it, style with CSS
 
H

Harlan Messinger

charles said:
OK guys, let's try this again...

I have tried to change the font size and family
of the text elements within a <table> ... </table>
"IT" is Firefox 1.5.0.7 browser.

After some trial and trial and trial and trial,
here is where I am now...

<html>
<head>
<style>
td {font-family: arial, verdana, sans-serif; size=+1; }

There's no such thing as size=+1 in CSS.
</style>
<body>
<!-- font face="comic sans ms" size=+1 -->
<!-- span style='font-size: 10.0pt; font-family: Arial' -->
<!-- span style="font-size: 13.5pt; font-family: Arial; color: navy;" -->
<!-- span style="font-size: 14pt; font-family: san-serif; color:
navy;" -->
<!-- span style="font-size: 18pt; font-family: san-serif; " -->

Neither the FONT element nor the SPAN element can contain a table. Each
can only contain inline (non-block) elements. You shouldn't be using
FONT tags anyway. They're obsolete.
 
B

Beauregard T. Shagnasty

charles said:
Since I first posted my question, I googled for font-family and
came up with the "td {font...". The "td {font... " has some
influence on the teXt within the table, but it (the resultant
font) is very weak. If nothing else, I would like to specify
bold, but must I install <b> within every <td> element?

td {
font-family: arial, sans-serif;
font-size: 1.2em;
/* size=+1; is wrong */
font-weight: bold;
}

Or write it all as one,

td {
font: bold 1.2em arial, sans-serif;
}
 
C

charles cashion

Jonathan said:
>
> You need to read up on the syntax of CSS.
> http://www.w3.org/TR/CSS21/syndata.html
>
> ... "pt" Points are for printing not display...

Jonathan,
Thank you for the URL. And thank you for the info
regarding "pt". That I did not know.

Harlan said:
>
> Neither the FONT element nor the SPAN element
> can contain a table. Each can only contain inline
> (non-block) elements.

"Font element nor SPAN element can contain a table"
Good to know.
>
> td {
> font-family: arial, sans-serif;
> font-size: 1.2em;
> /* size=+1; is wrong */
> font-weight: bold;
> }
>
> Or write it all as one,
>
> td {
> font: bold 1.2em arial, sans-serif;
> }
>

BTS: Your suggestions worked and are appreciated.

Thanks to all three of you.
Charles
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top