relative sizing of button text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • a_nonymous8

    relative sizing of button text

    Hello all, I'm trying to get the text (and the button) to resize when a user
    selects a new font size in the "View...Tex t Size...[5 choices]" menu in
    MSIE. I have a style sheet specifying:

    button.blue {
    background-color: #4682b4;
    font: 20px;
    }

    and a form element:

    <input type="button" class="blue" value="submit">

    When rendered, the button looks fine at 'medium' font setting but it doesn't
    change when the MSIE font menu described above is used. The static test on
    the page changes but not the button. I've tried all the font settings I can
    find in the style but nothing works. Is there a way to make a button and
    it's text change in accordance with the MSIE5.5+ (and necessarily
    Netscape6+) font menu settings? Yes, the reply email works but I will be
    checking back here too. Thanks a bunch in advance.

    Secret Asian Man





  • William Tasso

    #2
    Re: relative sizing of button text

    a_nonymous8 wrote:[color=blue]
    > Hello all, I'm trying to get the text (and the button) to resize when
    > a user selects a new font size in the "View...Tex t Size...[5
    > choices]" menu in MSIE. I have a style sheet specifying:
    >
    > button.blue {
    > background-color: #4682b4;
    > font: 20px;
    > }
    >
    > and a form element:
    >
    > <input type="button" class="blue" value="submit">
    >
    > When rendered, the button looks fine at 'medium' font setting but it
    > doesn't change when the MSIE font menu described above is used.[/color]

    button.blue {background-color:#4682b4; font:2em;}


    --
    William Tasso - http://WilliamTasso.com


    Comment

    • Beauregard T. Shagnasty

      #3
      Re: relative sizing of button text

      a_nonymous8 pounced upon this pigeonhole and pronounced:[color=blue]
      > Hello all, I'm trying to get the text (and the button) to resize when a user
      > selects a new font size in the "View...Tex t Size...[5 choices]" menu in
      > MSIE. I have a style sheet specifying:
      >
      > button.blue {
      > background-color: #4682b4;
      > font: 20px;
      > }
      >
      > and a form element:
      >
      > <input type="button" class="blue" value="submit">
      >
      > When rendered, the button looks fine at 'medium' font setting but it doesn't
      > change when the MSIE font menu described above is used. The static test on
      > the page changes but not the button. I've tried all the font settings I can
      > find in the style but nothing works. Is there a way to make a button and
      > it's text change in accordance with the MSIE5.5+ (and necessarily
      > Netscape6+) font menu settings? Yes, the reply email works but I will be
      > checking back here too. Thanks a bunch in advance.[/color]

      button.blue {
      background-color: #4682b4;
      font-size: 100%;
      }

      Use a percentage instead of pixels. IE is broken and will not allow the
      visitor to resize anything you set in pixels.

      (You should set a foreground color as well.)

      --
      -bts
      -This space intentionally left blank.

      Comment

      Working...