font size and weight within a table

Discussion in 'HTML' started by charles cashion, Oct 16, 2006.

  1. 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
    charles cashion, Oct 16, 2006
    #1
    1. Advertising

  2. charles cashion

    jojo Guest

    charles cashion wrote:

    > 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.
    jojo, Oct 16, 2006
    #2
    1. Advertising

  3. charles cashion

    Andy Dingley Guest

    charles cashion wrote:

    > Can somebody point me to an explanation?


    If you can point us to a URL for the site with the problem.
    Andy Dingley, Oct 16, 2006
    #3
  4. Re: font size and weight within a table (#2)

    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
    charles cashion, Oct 16, 2006
    #4
  5. Re: font size and weight within a table (#2)

    charles cashion wrote:
    > 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

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Oct 16, 2006
    #5
  6. Re: font size and weight within a table (#2)

    charles cashion wrote:
    > 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.
    Harlan Messinger, Oct 16, 2006
    #6
  7. Re: font size and weight within a table (#2)

    charles cashion wrote:

    > 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;
    }

    --
    -bts
    -Motorcycles defy gravity; cars just suck
    Beauregard T. Shagnasty, Oct 16, 2006
    #7
  8. Re: font size and weight within a table (thanks)

    Jonathan N. Little wrote:
    >
    > 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 Messinger wrote:
    >
    > 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.

    Beauregard T. Shagnasty wrote:
    >
    > 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
    charles cashion, Oct 17, 2006
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Madame Blablavatsky

    'font-weight' problem

    Madame Blablavatsky, Jul 26, 2005, in forum: HTML
    Replies:
    6
    Views:
    419
    Jukka K. Korpela
    Aug 2, 2005
  2. jambiani

    style="font-weight: 500;"

    jambiani, Nov 7, 2006, in forum: HTML
    Replies:
    9
    Views:
    518
    Ed Mullen
    Nov 8, 2006
  3. Steve Richter
    Replies:
    2
    Views:
    5,603
    Steve Richter
    Jul 16, 2007
  4. richard

    font weight

    richard, Jun 17, 2008, in forum: HTML
    Replies:
    14
    Views:
    893
    dorayme
    Jun 18, 2008
  5. mttc
    Replies:
    2
    Views:
    2,361
    Roedy Green
    Jul 3, 2009
Loading...

Share This Page