Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    font size in mixed html/php document

    Hey

    My site has a php forum embedded in an html page. I can not get my font size in the html document to change. I don't know if its a matter of the forum stylesheet over-riding the rest of the document or what. Can anyone help?

    the site is at www.teamskinny.ca/home.html

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm guessing you are having the problem in IE? If a font-size is set in px then IE can't resize it. Other browsers can. Also your stylesheet shouldn't go in your body, it should go in your head tags. So anywhere in your stylesheet for your forum that you see font-size set with px you need to change it to a different unit like pt or em.

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. Being fairly new to this, what are the units entered for pt or em? Is pt the same as the older typewriter "point" system? where 3 pt would be fairly small?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yeah, where as em would be the width of the letter m in that font-family.

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    Yeah, where as em would be the width of the letter m in that font-family.
    I never knew that. I had a feeling they were relative to their container or something?

    A point size (pt) is also fixed in IE by the way, and cannot be resized - the same with px - so em's are the best option. 1 point = 1/72 inches.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    My bad an em is actually the height of a character. Read here for more info.


  •  

    Posting Permissions

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