SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Font size probs

  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Font size probs

    I have a line in my CSS file:

    p, li, td, a { font-size: smaller; }

    but where I have a <p> within a <td> my text is doubly smaller. I understand why - I think - but how can I avoid this? I don't want to use a fixed size (eg 10pt which would, I think, work) because it's not scalable.

    Cheers, G

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Font size probs

    Originally posted by gandalf458
    where I have a <p> within a <td> my text is doubly smaller... how can I avoid this?
    Don't put a <p> within a <td>. Simple!

    Or, to put it another way... my rule of thumb is this: if it's hard, you're doing it wrong. I repeat that to myself and everyone around me all day long.
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone got a helpful suggestion?

  4. #4
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like you should investigate "font-size: small".

    See http://www.w3.org/TR/REC-CSS2/fonts....ont-size-props

    Also, browsers other than IE can resize text specified with a point size.

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought there'd be a simple explanation - thanks G :-)>

  6. #6
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Font size probs

    Originally posted by gandalf458
    I don't want to use a fixed size (eg 10pt which would, I think, work) because it's not scalable.
    Originally posted by blufive
    Also, browsers other than IE can resize text specified with a point size.
    You must be talking about IE/Win.
    IE/MacOS has no problem at all scaling fonts set in pt units.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  7. #7
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    instea of the p, li, td, a {} line, put

    td li,a,p {font-size:smaller;}


    ----
    or, try this:

    p, td, li, a {font-size-small;}
    td p,li,a {font-size-small;}

    this should work
    InQuE


Bookmarks

Posting Permissions

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