You are here: Re: font size and weight within a table (#2) « HTML « IT news, forums, messages
Re: font size and weight within a table (#2)

Posted by Jonathan N. Little on 10/16/06 19:47

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация