HighDots Forums  

CSS problem

Javascript JavaScript language (comp.lang.javascript)


Discuss CSS problem in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeroen van vliet
 
Posts: n/a

Default CSS problem - 08-06-2003 , 06:57 AM






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



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: CSS problem - 08-06-2003 , 07:17 AM






Jeroen van vliet wrote:

Quote:
Hello i have gor an css problem, i want to use a fixed font size and i pur
Then your design is broken.
http://diveintoaccessibility.org/day...ont_sizes.html

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

doesnt work, if i change the size in explorer to smaller or bigger, it
still changes
Becuase 70% of a smaller font size is smaller then 70% of a larger font
size!

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


Reply With Quote
  #3  
Old   
Philip Ronan
 
Posts: n/a

Default Re: CSS problem - 08-06-2003 , 07:21 AM



On 03.8.6 11:57 AM, Jeroen van vliet wrote:

Quote:
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; }

(more style snipped)
/style

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

why?

Danny
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 (AT) virgin (DOT) net
(Please remove the "z"s if replying by email)




Reply With Quote
  #4  
Old   
Ben Nunn
 
Posts: n/a

Default Re: CSS problem - 08-06-2003 , 12:05 PM



Unless I'm very much mistaken, it was Philip Ronan
(phil.ronanzzz (AT) virgin (DOT) net), in message
BB56A34B.17708%phil.ronanzzz (AT) virgin (DOT) net who said:

Quote:
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.

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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.