66 users online (1 members and 65 guests)  


  Results 1 to 5 of 5

Related

  1. to or not to specify font sizes    Forum: HTML Forum
    Replies: 1
  2. Font Size/Font Face    Forum: CSS Forum
    Replies: 4
  3. Font Size/Font Face    Forum: HTML Forum
    Replies: 2
  4. Printing pages with different font-sizes    Forum: HTML Forum
    Replies: 5
  5. Replies: 2
  1. #1
    springo707's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2002
    Location
    Kansas City MO
    Posts
    42

    Font sizes in CSS



    Yes, I am confused. I am trying to put in some more css and my font sizes will not come out the way I want them to. I used to code
    <font face="verdana" size="2pt">whatever</font>.

    In css, I did:
    font.small {
    font-family: verdana, tahoma, helvitca;
    font-weight: bold;
    font-size: 2pt}
    assuming that the font size would be the same if I were to code

    <font class="small">whatever</font>

    When I use the class, I get a microscopic font size. What did I do wrong?

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    font size="2" and 2pt in css are much different. For a verdana font try 10 pt or 11 pt, that should be close to a font size="2" in HTML

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  3. #3
    springo707's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2002
    Location
    Kansas City MO
    Posts
    42
    Thank you - but now I am somewhat more confused. I was under the impression that in HTML, it is best to use
    font size="2pt"
    or
    font size="2px"
    as opposed to
    font size="2"
    I had read this somewhere. The reason for it is that from os to os, the point or pixels would turn out at the same size where as without that notation, it may not be the same from os to os.
    Is this not accurate? or am I wasting my time in html putting 2pt.
    And does this also mean that there is still a difference in the "2pt" from CSS to HTML?

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    You are useing CSS so, all you need to do is increase the size you have.
    change
    font-size: 2pt
    to
    font-size: 10pt ...or 11
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  5. #5
    Sickhead's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2002
    Posts
    2
    Yep he's right and I shouldn't use <FONT> you can use <P STYLE=""> instead. It loads faster.
    For example: <FONT FACE="2pt"> to <P STYLE="font-size:11pt">. Or you can use classes. Ah what the hell I'm talking weird **** again...



Tags for this Thread