Results 1 to 5 of 5

Thread: More control over text size

  1. #1
    Join Date
    Nov 2002

    More control over text size


    Is there any way to specify that the size of part of the text on a page should not change although somebody changes the font size settings in their browser?


    Petter Ilander, Finland

  2. #2
    Join Date
    Nov 2002
    Using CSS you can use absolute units, but remember that if someone has a visual disability, it's not really fair to stop them resizing their text so they can actually read it:

    From the CSS 2 spec:
    # in: inches -- 1 inch is equal to 2.54 centimeters.
    # cm: centimeters
    # mm: millimeters
    # pt: points -- the points used by CSS2 are equal to 1/72th of an inch.
    # pc: picas -- 1 pica is equal to 12 points.
    You are only really supposed to use these on Physical mediums, such as paper (e.g. when printed) though. And also in some browsers (IE I think) px doesn't resize as it's supposed to.
    Last edited by Rick Bull; 11-24-2002 at 07:05 AM.

  3. #3
    Join Date
    Nov 2002
    Baltimore, Maryland
    The problem is that operating systems work with pixels and browsers do not know how many pixels there are to an inch on a user's screen. Always using pixels will encourage your page to keep its proportions; but as Rick pointed out, it's not nice to do that to those of us with failing eyes.

  4. #4
    Join Date
    Nov 2002
    Alright, this is the problem I have. I have to columns of a table, next to each other, each column with its own background image, and the two images line up. I have specified the width of the left column to 113 pixels. Now, when you view the page with larger font ir looks really crappy. Go check yourselves: www.uwasa.fi/~h79188/artikkelit.html . Do you have any suggestions on how to fix that without locking the font size?


  5. #5
    Join Date
    Nov 2002
    Norwood, MA
    Hi there!

    My very petite contribution is that your problem is not the font size, but that you're using tables to layot the page... big no-no!! For the layout you chose (inverted L) I'd make the whole image your background and use images instead of text for the menu items. This way you keep proportionality and size of the text in full control. The downside is that download time may go up if you're not smart about the way you make the graphics. Go transparent GIF and try to keep the graphics to less that 1 KB each (it's doable). Don't forget the ALT text!

    Hope this helps!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles