Results 1 to 6 of 6
  1. #1

    CSS font-size problem.

    Hi,

    Ive never come across this problem before, maybe some of you have and can help me out.

    Ive got a stylesheet with the following in it: -

    Code:
    body {
    	font-family: Geneva, Arial, Helvetica, san-serif;
    	font-size: 8px;
    	color: #000000;
    }
    .heading {
    	font-family: Geneva, Arial, Helvetica, san-serif;
            font-size: 8px;
    	font-weight: bold;
    }
    
    a:link{ color: #000000; text-decoration:none} 
    a:link:visited{ color: #000000; text-decoration:none} 
    a:link:hover{ color: #665599; text-decoration:underline}
    Everything is fine except the font-size's won't work, they come up as the standard size (I think it's 12pt) and not the 8px that I want. Anyone help me?

  2. #2
    Join Date
    Jan 2003
    Location
    Houston, TX - Originally from UK
    Posts
    697
    Only thing I see wrong with the snippet of code is it's sans-serif, not san-serif. If it isn't that (and I don't see why it would be) it could be a more specific selector is overriding your body and .heading declarations. Do you have any other font-size declarations anywhere?
    Kinkamono Internet Services - The Internet. Done Right.
    Dive In...

  3. #3
    nope the only thing I have is the <br>'s on the text.

  4. #4
    Join Date
    Jan 2003
    Location
    Houston, TX - Originally from UK
    Posts
    697
    Any tables? Certain browsers don't "remember" font size settings if tables are involved.

    If not, you'll have to post source code and CSS for me to be able to diagnose properly.
    Kinkamono Internet Services - The Internet. Done Right.
    Dive In...

  5. #5
    Join Date
    May 2004
    Location
    Pflugerville, TX
    Posts
    11,222
    A little trick I use to get font sizes to inherit is the following:

    body { font-size:85% }
    table, tr, td, ul, ol, li { font-size:100% }

    Then proceed as normal. No more worries about your base font size. It's probably a bit of overkill, but at least you've covered al your bases.

    FWIW, I would heartily recommend staying away from fixed font sizes, especially of such a small size. Using % or em, at least those people who NEED the font larger can have it this way. Others with font sizes at med or smaller will still see what you're trying to show them.
    Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

  6. #6
    If you are using templates, make sure you have it attached to the sub page, and not just the template (or you can do both).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •