Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:23:25 AM

Pages: [1]   Go Down
  Print  
Author Topic: Adjusting font size when using tables  (Read 371 times)
nicholaswhite
Pong! (the videogame) Master
*****
Offline Offline

Posts: 23


WWW
« on: August 26, 2002, 01:58:00 PM »

I don't know how or where to put "font size" commands in my website and it's all a bit hit-and-miss at the moment. Like I'm finding that it only really seems to work if I do a separarte command in each box in my tables, which could become quite messy if I did have to do it then. Please please can anyone help me...
Logged
esm
Trekkie
**
Offline Offline

Posts: 17


WWW
« Reply #1 on: August 28, 2002, 05:12:00 AM »

you might want to take a look at using css....

you can specify somthing like the following
 
code:
 td {
   font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
   font-size: 13px;
   text-align: left;
   color: #FFCC00;
   font-weight: bold;
   background-color: #336633;
}
 

Logged

Gene
The older I get, the more I admire competence, just simple competence, in anything from adultery to zoology
nicholaswhite
Pong! (the videogame) Master
*****
Offline Offline

Posts: 23


WWW
« Reply #2 on: August 30, 2002, 01:12:00 AM »

Thanks for that. But is it possible to do in plain HTML without having to put a new fontsize command in every "TD"?
Logged
lethalweapon
Galactic Royalty
*****
Offline Offline

Posts: 242


WWW
« Reply #3 on: September 01, 2002, 11:00:00 AM »

Ok, don't know exactly what you need, but if it's what I'm thinking it is, just put a FONT SIZE="*" right after the BODY tag and end using the /FONT right before the /BODY and when you want to change for a title, you'd just have to put the FONT tags around the words, but everything else would have your settings from the first tag.  I realize that you probably don't understand a word that I just said, but I don't know a way to say it clearer...lol.  Hope that helps, I'll try to clear it up a bit, if you need it, and if I'm even answering the question you asked.
Logged
esm
Trekkie
**
Offline Offline

Posts: 17


WWW
« Reply #4 on: September 01, 2002, 03:47:00 PM »

I still think you want to use something like this
code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>

<STYLE type="text/css">

BODY {
color: red;
font-size: 6pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: 200;

}

P {
   FONT-SIZE: 20px; FONT-FAMILY: geneva,arial,Verdana,Helvetica
}

td {   
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: 18px;   
text-align: left;   
color: #FFCC00;   
font-weight: bold;   
background-color: #336633;
}

td.misc {   
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: 18px;   
text-align: left;   
color: #336633;   
font-weight: bold;   
background-color: #FFCC00;
}


</STYLE>
</HEAD>

<BODY>
Now that is what<BR><BR>
<TABLE cellpadding="4" cellspacing="0">
<TR>
   <TD>Take me home</TD>
   <TD>Country roads</TD>
</TR>
<TR>
   <TD class="misc">to the place</TD>
   <TD>I belong</TD>
</TR>
</TABLE>
<BR><BR>
I call easy

<P>but be careful.</P>
</BODY>
</HTML>

 

But I won't beat you over the head for not using it.
Logged

Gene
The older I get, the more I admire competence, just simple competence, in anything from adultery to zoology
Pages: [1]   Go Up
  Print  
 
Jump to: