CSS problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeroen van vliet

    CSS problem

    Hello i have gor an css problem, i want to use a fixed font size and i pur
    this in the head

    <style>

    body { font-size: 70%; font-family: verdana, helvetica, sans-serif; }

    td { font-size: 70%; font-family: verdana, helvetica, sans-serif; }

    h4 { font-size: 120%; font-weight: bold; }

    ..m { font-size: 80%; }

    ..headings { font-size: 80%; font-weight: bold; }

    ..title { font-size: 115%; font-weight: bold; }

    ..inputbox {
    border-top:#333333 solid thin;
    border-bottom:#333333 solid thin;
    border-right:#333333 solid thin
    font-family: verdana, helvetica, sans-serif;
    }

    ..inputbutton { font-size: 90%; }

    </style>

    doesnt work, if i change the size in explorer to smaller or bigger, it still
    changes

    why?

    Danny


  • David Dorward

    #2
    Re: CSS problem

    Jeroen van vliet wrote:
    [color=blue]
    > Hello i have gor an css problem, i want to use a fixed font size and i pur[/color]

    Then your design is broken.
    สล็อตเว็บตรง Abacusjaspers.com ระบบแท้ API เวอร์ชั่นล่าสุด เล่นง่าย ฝากถอนทรูวอเลท เล่นได้ทุกเกม ไม่ต้องโยกเงิน เว็บใหม่ ที่คุณห้ามพลาด !

    [color=blue]
    > body { font-size: 70%; font-family: verdana, helvetica, sans-serif; }[/color]
    [color=blue]
    > doesnt work, if i change the size in explorer to smaller or bigger, it
    > still changes[/color]

    Becuase 70% of a smaller font size is smaller then 70% of a larger font
    size!

    --
    David Dorward http://david.us-lot.org/

    Comment

    • Philip Ronan

      #3
      Re: CSS problem

      On 03.8.6 11:57 AM, Jeroen van vliet wrote:
      [color=blue]
      > Hello i have gor an css problem, i want to use a fixed font size and i pur
      > this in the head
      >
      > <style>
      >
      > body { font-size: 70%; font-family: verdana, helvetica, sans-serif; }
      >[/color]
      (more style snipped)[color=blue]
      > </style>
      >
      > doesnt work, if i change the size in explorer to smaller or bigger, it still
      > changes
      >
      > why?
      >
      > Danny[/color]

      This is all rather OT for a Javascript newsgroup. But...

      Using a fixed font size is a definite no-no. Maybe your design looks very
      pretty on your computer, but have you considered how it might look at 127
      dpi on a high resolution display? Or to one of the _millions_ of people out
      there who have trouble reading small print?

      These days browsers have font settings in their preferences that allow users
      to choose a font size that suits them. That would presumably correspond to a
      size of "100%". So why are you shrinking all the body text to 70%? Is your
      website full of legal small print that you don't want anyone to read?

      The ability to change the text size in browsers is very useful. Don't try
      and disable it.

      Phil

      --
      Philip Ronan
      phil.ronanzzz@v irgin.net
      (Please remove the "z"s if replying by email)


      Comment

      • Ben Nunn

        #4
        Re: CSS problem

        Unless I'm very much mistaken, it was Philip Ronan
        (phil.ronanzzz@ virgin.net), in message
        BB56A34B.17708% phil.ronanzzz@v irgin.net who said:
        [color=blue]
        > Using a fixed font size is a definite no-no. Maybe your design looks
        > very pretty on your computer, but have you considered how it might
        > look at 127
        > dpi on a high resolution display? Or to one of the _millions_ of
        > people out there who have trouble reading small print?
        >
        > These days browsers have font settings in their preferences that
        > allow users to choose a font size that suits them. That would
        > presumably correspond to a size of "100%". So why are you shrinking
        > all the body text to 70%? Is your website full of legal small print
        > that you don't want anyone to read?
        >
        > The ability to change the text size in browsers is very useful. Don't
        > try
        > and disable it.[/color]


        Of course, the logic of using %s for fonts for accessibility purposes goes
        out the window when you go any smaller than 100% anyway as people's ability
        to read a given % of their chosen default varies with their eyesight as much
        as anything else.

        BTN



        Comment

        Working...