Css font style problem.

SpaceshipSpaceship
Watch

kevinmoran

Established Member
Impact
0
i'm new to css and i'm having problems using external style sheets. i'm using table in my site and i find that my font turns out very tiny when it is put into many tables at a time. when the font is outside the table, it displays normally.

take a look:
http://www.kevinmoran.net/css_problem/

the font size that i'm using through out the page is 0.8em...inside the table the font is very small...i'm using golive cs2
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You don't need to set the font size for every element, when you set the font size on body it automatically applies that size to the text in table cells, so therefore you're setting the font size for the same thing twice. EMs work in a weird way, if you set a word at .8em twice, it will become .8em of .8em, which means it will be an 8th smaller (.7em). I think that's how it works anyway.

You should only need to set the font size on body and maybe p.
 
0
•••
okay...
so your saying that all i do is set the font once for <p> and apply it to the rest of the site and i'll be fine?...what is i would like a different colour/size for another set of text. do i then start using <h1> and <h2>...?
 
0
•••
Set the size once for the body, and once for the paragraphs. Yes you should use h1 and h2, but only for headings, you can still set your own size for these. If you want to change the size of part of a paragraph create a span and give it whatever size you want.
 
0
•••
sorry to keep going on about this...but what about my links <a>..<a:hover>...those are going to be set to be the same size as the <p> font...will this cause a problem?

should i be using a different unit other than 'em'?
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back