Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Table Font Size

Reply
Thread Tools

Table Font Size

 
 
Wayne Wengert
Guest
Posts: n/a
 
      10-23-2003
How can I control the font size in a table? The <font size="x"> has no
effect (IE 6).

--
------------------------------------
Wayne Wengert



 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      10-23-2003
Wayne Wengert pounced upon this pigeonhole and pronounced:
> How can I control the font size in a table? The <font size="x"> has no
> effect (IE 6).


Please don't try to defeat my default font size. Use CSS and set

td { font-size: 100%; }

...then set your own browser to the size you find comfortable.

Consider also: body { font-size: 100%; }

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      10-23-2003

"Wayne Wengert" <> wrote in message
news:3f982a44$0$194$...
> How can I control the font size in a table? The <font size="x"> has no
> effect (IE 6).


Let me guess - you have something like
<font ...><table> ... </table></font>

Well, the font element is an inline element so can not contain block level
elements like table. You have to put the font element inside each cell. If
you use block level element like <p> in those cells then the font element
must be inside each of those as well.

This is one of the reasons the font element has been deprecated in favour of
using CSS for presentational issues.

Cheers
Richard.


 
Reply With Quote
 
Wayne Wengert
Guest
Posts: n/a
 
      10-23-2003
Thanks for the advice. I'll look into using CSS for this.

Wayne

"rf" <> wrote in message
news:yzWlb.162814$...
>
> "Wayne Wengert" <> wrote in message
> news:3f982a44$0$194$...
> > How can I control the font size in a table? The <font size="x"> has no
> > effect (IE 6).

>
> Let me guess - you have something like
> <font ...><table> ... </table></font>
>
> Well, the font element is an inline element so can not contain block level
> elements like table. You have to put the font element inside each cell. If
> you use block level element like <p> in those cells then the font element
> must be inside each of those as well.
>
> This is one of the reasons the font element has been deprecated in favour

of
> using CSS for presentational issues.
>
> Cheers
> Richard.
>
>



 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      10-23-2003

"Wayne Wengert" <> wrote in message
news:3f985681$0$196$...
> "rf" <> wrote in message
> news:yzWlb.162814$...
> >
> > "Wayne Wengert" <> wrote in message
> > news:3f982a44$0$194$...
> > > How can I control the font size in a table? The <font size="x"> has no
> > > effect (IE 6).

> >
> > Let me guess - you have something like
> > <font ...><table> ... </table></font>
> >
> > Well, the font element is an inline element so can not contain block

level
> > elements like table. You have to put the font element inside each cell.

If
> > you use block level element like <p> in those cells then the font

element
> > must be inside each of those as well.
> >
> > This is one of the reasons the font element has been deprecated in

favour
> of
> > using CSS for presentational issues.


> Thanks for the advice. I'll look into using CSS for this.


In your head:

<style type="text/css">
table {font-size: 100%;}
</style>

Cheers
Richard.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating font with fixed font size andreasbell Software 1 08-30-2010 09:39 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Printing with specific font-type and font-size wial Java 2 11-27-2008 05:30 PM
Windows XP explorer font and font size Lookout Computer Support 0 06-04-2006 02:58 AM
Selecting font size based on available font dave richards HTML 2 02-19-2004 02:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57