Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-22-2005, 02:25 PM   #1
Member (10 bit)
 
Punked Out Comp's Avatar
 
Join Date: Nov 2003
Location: NJ
Posts: 855
HTML queston-please dont move.

Please dont move this thread because hardly anyone reads the HTML forum.



How do I change the font settings in a table? I have the font settings to size=+2 and also bold, but It only affects the text not in the table. However the text in the table is the font style I set it to. How come I can change the font stlye but not the size or bold it?
Punked Out Comp is offline   Reply With Quote
Old 02-22-2005, 02:57 PM   #2
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
You can either use style sheets to define the styles that you want to set within your Table definions,
for example in your CSS include the following definitions:
PHP Code:
TD {
    
FONT-WEIGHTnormalFONT-SIZE11pxCOLOR#365361; FONT-FAMILY: Verdana, Helvetica, sans-serif; TEXT-DECORATION: none

Or you can define the style you want to use within your TABLE tag; for example:
PHP Code:
<table style="color: Black;"


Moderator note:
We move threads out into the appropriate forums for a number of reasons, a lot of it has to do with organizing the information stored appropriately by the sections. If we just wanted everybody to throw out a bunch of questions on one forum, then we wouldnt have all these classifications.
Statica is offline   Reply With Quote
Old 03-01-2005, 12:17 PM   #3
Member (10 bit)
 
Punked Out Comp's Avatar
 
Join Date: Nov 2003
Location: NJ
Posts: 855
Heres what I did:

PHP Code:
<table style="border: 0; size: +2;"
But the size still isnt "+2" and Im not going to mess with CSS because Im just learning it, right now Ive only done the margins in CSS.

And how do I bold it?

Last edited by Force Flow; 03-01-2005 at 02:03 PM.
Punked Out Comp is offline   Reply With Quote
Old 03-01-2005, 02:04 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Post your code in PHP tags. It messes up the page if you do straight out html.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 03-03-2005, 07:01 AM   #5
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Quote:
Originally Posted by Punked Out Comp
Heres what I did:

PHP Code:
<table style="border: 0; size: +2;"
But the size still isnt "+2" and Im not going to mess with CSS because Im just learning it, right now Ive only done the margins in CSS.

And how do I bold it?
a) There is no CSS definition for "size" the correct definion is font-size
b) There is no font-size attribute as +2; font-size can be defined either in "relative values" like xx-large, x-large, large, medium, small, x-small, xx-smaller or as absolute values like 12px or 14px; or you may use percentages as 200%
example:
PHP Code:
style="border: 0; font-size: 18px;"
style="border: 0; font-size: x-large;"
style="border: 0; font-size: 50%;" 
c) To bold a text, you can use the font-weight attribute, anywhere from bolder, bold, normal, lighter or as numbers 100, 200, 300... 900

http://www.htmlhelp.com/reference/css/properties.html is a good repository of your options.
Statica is offline   Reply With Quote
Old 03-03-2005, 07:58 AM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
A more in depth view on CSS is given at A list apart.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:18 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2