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 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    maintain font sizes on web page

    Is there a way to maintain font sizes on a web page regardless of the users browser settings? I have a graphic border on my web page but the border breaks if your text size setting is anything but the "medium" setting.
    Thanks for any help.
    Richard

  • #2
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i did see another thread with a simalar question but it has not been answered.
    I also have several sizes of font on the same page so I cant set a default size for the whole page.
    I just want to somehow "lock" the font sizes for my users viewing my page.
    Thanks again.
    Richard

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well, you could use px ( I think ).
    Code:
    body {
       font-size: 12px;
    }
    Omnis mico antequam dominus Spookster!

  • #4
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Mhtml
    Well, you could use px ( I think ).
    Code:
    body {
       font-size: 12px;
    }
    That'll only work in IE. There isn't a way to keep the user from changing the font-size via their browser -- except, of course, in IE.

  • #5
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok..im a retard when i comes to html. Where exactly do i put this code? under <head>?
    I just cut and paste the following?
    body {
    font-size: 12px;
    }
    thanks

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks Paul, I had a feeling it was IE only .

    As for you shli01 I think perhaps you should pay a visit to www.w3schools.com/css and learn the wonderful art of CSS.
    Omnis mico antequam dominus Spookster!

  • #7
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow... can't even delete my own post? Lol, anyhoo.


    Yeah, check out the W3Schools place, and learn CSS!

  • #8
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok..aside from giving me advice to read all about CSS, if anyone could post a simple answer to my question i would appreciate it greatly. (point of a forum)

    Thanks
    Richard

  • #9
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Simple answer: You can't, well at least not to my knowledge.
    Omnis mico antequam dominus Spookster!

  • #10
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As explained before (or not?) the solution you are looking for will only work for IE, thus, it's not really a solution. But if you wish to continue with it, you would just add the following code, as-is, into your <head> tag.
    Code:
    <style type="text/css">
    body {
    font-size: 12px;
    }
    </style>
    I would strongly suggest learning CSS, too. It's a very powerful and useful language to know. Almost required, these days.

    Cheers - Paul Jr


  •  

    Posting Permissions

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