View Full Version : how to change text size within a table?


vicary
05-12-2003, 02:39 AM
I have a basic CSS for my pages of my site, but I change the font size in it (below) and it won't size down. I want a size 8, but it shows my original size 10 even when I change it. Is there a way I am supposed to edit the code for the table if I want to change the font size?
body
{ background-color: #ffffff;
font-family: verdana, arial, lucida sans;
color: #000000 ;
letter-spacing: 1pt;
font-weight:normal;
font-size:10pt;
text-align: center;
margin: 10px 0px 0px 15px;

Thanks!
Vicary

amicus
05-12-2003, 02:50 AM
you need to use 10px for font the size and put an '}' at the end :)

lefty
05-12-2003, 03:06 AM
also, some tags are tricky with tables, your code should say body, td if you want the attribues to be applied to the table as well.

amicus
05-12-2003, 03:08 AM
yes, you'll need to do that too. i missed that part in your post :)

vicary
05-12-2003, 05:59 AM
Ok , this is great, but not exactly how i want my tables. I want my body this way:
body
{ background-color: #ffffff;
font-family: verdana, arial, lucida sans;
color: #000000 ;
letter-spacing: 1pt;
font-weight:normal;
font-size:8pt;
text-align: center;
margin: 10px 10px 0px 15px;

I want my table this way, but with a size 8 font, not a size 10 font:
<div align="left";><br>

<table><table border="2" bordercolor="#A02623">
<tr>
<td bgcolor="#D1C586"><b>Cost:</b></td><td>How much you can afford to spend or want to spend?</td></tr>
<br><br>
<tr>
<td bgcolor="#D1C586"><b>Colors:</b></td><td>How many colors included in your logo/business supplies and how many are to be printed?</td></tr>
<tr>
<td bgcolor="#D1C586"><b>Fonts:</b></td><td>Please inform me of the fonts you wish to use on your artwork. Please make sure these fonts are available for commercial use by the original creator of the font before submitting them to me. Vicary Biznis verifies that all fonts are freeware fonts and can be used for commercial purposes by submitting a request to the original font creator if there are any questions. This may take additional time. Otherwise, I use Windows TrueType fonts or fonts included with my graphics software.</td></tr>
<tr>
<td bgcolor="#D1C586"><b>Quantity:</b></td><td>What is your quantity for each item you want to order?</td></tr>
<tr>
<td bgcolor="#D1C586"><b>Bleeds:</b></td><td>Does the ink bleed off the page?</td></tr>
<tr>
<td bgcolor="#D1C586"><b>Artwork/Logo Design:</b></td><td> How will you supply the artwork (i.e. what program was your artwork created in and what format was it saved as)?</td></tr>
<tr>
<td bgcolor="#D1C586"><b>Paper Stock:</b></td><td>What type of paper stock do you want to use? Many colors & styles to choose from! You view samples here:<a href=stkclr.html target="right">Paper Samples</a></td></tr>

</td>
</table>
</div>

Now, how would I get my info to be 'centered' in my table?
When I use this:
<div align="center";><br>
</div>
it doesn't center the info in the tables.

Thanks in advance!
Vicary

Elentari
05-12-2003, 07:45 AM
If you want ALL your tables in that page to have the same size font put this in your CSS tag after the last }



table, td {
font-size:8pt;
}


If you just want one table to do it just add a style tag to the table....


<table style="font-size:8pt;">