|
| |
|
|
hzarabet
Posts: 1539 From: New Milford CT USA Status: offline
|
Another newbie question - 4/26/2004 23:54:38
Hi all... When setting up my style sheets, let's say I use td.cell {font-size: 100%} So... <td class="cell">Nice to see you!</td> But let's I want to JUST have the word "Nice" at 150%. The way I am thinking seems very "fat"... td.cell {font-size: 100%} td.cell150{font-size: 150%} <td class="cell150">Nice</td><td class="cell"> to see you!</td> Something tells me this can't be right!!! Thanks in advance!
_____________________________
http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
|
|
|
|
d a v e
Posts: 4087 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Another newbie question - 4/27/2004 1:40:25
if you want several cells maybe with all *fat* text then make a class like .fatCell {font-size:150%} then apply it to the td... <td class="fatcell"> but i think it would be more felxible maybe to use a just a class of .fat {font-size:150%} and apply it to the paragraph tag or use a span e.g. <td> <p class="fat>this is some fat paragraph text</p> </td> or if it's just one word possibly <td> <span class="fat>this is some fat paragraph text</span> </td>
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4087 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Another newbie question - 4/27/2004 2:29:15
what then if you have acronyms on your page? they'll all be huuuge. well quite big.
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4087 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Another newbie question - 4/27/2004 2:39:02
but then compare: <p class="fat>Hello</p> <acronym>Hello</acronym> ? i just don't see any reason to use a tag that wasn't meant for this when you can just use a perfectly good class or id.
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4087 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Another newbie question - 4/27/2004 3:46:22
yep, that's why before i said quote:
or if it's just one word possibly <td> <span class="fat>this is some fat paragraph text</span> </td> if you hijack the <i> or <b> tags (which are deprecated anyway) then what happens if you suddenly decide to use a <b> tag or <i> tag for something else?? doesn't FP automatically use the <b> tag for bold and not strong? or is this either an option or the default in FP2003 (i very rarely use FP and i'm still on FP2000) Jaybee - men don't like all those options, we get confused! yes or no, class or id, jeans and a t-shirt, etc, etc..
_____________________________
David Prescott Gekko web design
|
|
|
|
hzarabet
Posts: 1539 From: New Milford CT USA Status: offline
|
RE: Another newbie question - 4/27/2004 16:00:45
Hmmm...not sure if I explained myself well!!! By FAT I meant bloated code. If this is on my style sheet: td.cell {font-size: 100% and I want it to align "left" in some places and align "right" in others, do I need to right two separate items on my style sheet: td.cell-left {font-size: 100% text-align: left;} td.cell-right {font-size: 100% text-align: right;} or can I leave it as td.cell {font-size: 100%} on my style sheet but command the alignment in HTML at the occurance where it needs to be left or right. If not I see myself right a hundred additions to my style sheet
_____________________________
http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
|
|
|
|
hzarabet
Posts: 1539 From: New Milford CT USA Status: offline
|
RE: Another newbie question - 4/27/2004 17:28:21
It's not left-right font size per say. The question is really do you have to re-write EVERY variation on your style sheet or can you adjust the left or right or the font size directly in your HTML to keep your style sheet smaller.
_____________________________
http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
|
|
|
|
d a v e
Posts: 4087 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Another newbie question - 4/27/2004 17:53:07
this would be better
body {font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
vertical-align: top;}
.middle-head{
font-size: 140%;
}
.middle-head-small{
text-align: center;
font-size: 80%;
}
.middle-head-center{
text-align: center;
font-size: 140%;
} you might need to use body {font-family: Arial, Helvetica, sans-serif; font-weight: normal; vertical-align: top;} if the styles don't inherit into the table cells, but otherwise that's the beauty of css, by setting the style for the parent element (either the body or table or whatever contains the element you want to apply a class to ) then it is inherited by the child elements.
_____________________________
David Prescott Gekko web design
|
|
|
|
hzarabet
Posts: 1539 From: New Milford CT USA Status: offline
|
RE: Another newbie question - 4/27/2004 18:07:01
Thanks for ALL your help folks and primates.
_____________________________
http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|