I have heard so much preaching here about how font sizes should be set
as percentages so users can change font-sizes on their browsers... ok,
so now at work am working on a site where we need to do precisely that
b/c it's for an audience that some users maybe be visually-impaired..
but I can't get it to work right, problem is that font sizes are not
consistent across diff elements.. code:
body {text-align:center; /* to center main-content div */
font-family: verdana, arial, helvetica, sans-serif; font-size:100%;
line-height: 100%; margin-top:20px; margin-left:0px; margin-right:0px;
margin-bottom:0px}
td,p,li,div,a { font-family: verdana, arial, helvetica, sans-serif;
font-size:100%; line-height: 100%;}
font inside these diff. elements are different sizes..
essentially we have a body{} selector (is this right name for it?) with
'text-align:center' so we can center main-content div, which is a width
of approx 600px, as in
#content {width: 612px; font-size: 70%; line-height: 190%;
margin: 0 auto 0 auto; text-align:left; }
they have 70% for font-size here; so: if further down we have more
elements, such as tables, more divs, spans, <a>'s, etc.. with NO FONT
SIZE SPECIFICATION, what size will fonts be? problem is they're diff
sizes for diff elements; inside this main-content div I have tables,
<a>'s etc.. font-sizes for these diff. elements are different... why is
this..
conversely, if, inside main-content div I do
h1 { font-family:Georgia, "Times New Roman", Times, serif;
font-size:190%; font-weight:normal; color:#003366;}
font-size will be 190% of font specified in body{} or #content{}
(<h1>..</h1being inside #content div..) ??
thank you very much..
as percentages so users can change font-sizes on their browsers... ok,
so now at work am working on a site where we need to do precisely that
b/c it's for an audience that some users maybe be visually-impaired..
but I can't get it to work right, problem is that font sizes are not
consistent across diff elements.. code:
body {text-align:center; /* to center main-content div */
font-family: verdana, arial, helvetica, sans-serif; font-size:100%;
line-height: 100%; margin-top:20px; margin-left:0px; margin-right:0px;
margin-bottom:0px}
td,p,li,div,a { font-family: verdana, arial, helvetica, sans-serif;
font-size:100%; line-height: 100%;}
font inside these diff. elements are different sizes..
essentially we have a body{} selector (is this right name for it?) with
'text-align:center' so we can center main-content div, which is a width
of approx 600px, as in
#content {width: 612px; font-size: 70%; line-height: 190%;
margin: 0 auto 0 auto; text-align:left; }
they have 70% for font-size here; so: if further down we have more
elements, such as tables, more divs, spans, <a>'s, etc.. with NO FONT
SIZE SPECIFICATION, what size will fonts be? problem is they're diff
sizes for diff elements; inside this main-content div I have tables,
<a>'s etc.. font-sizes for these diff. elements are different... why is
this..
conversely, if, inside main-content div I do
h1 { font-family:Georgia, "Times New Roman", Times, serif;
font-size:190%; font-weight:normal; color:#003366;}
font-size will be 190% of font specified in body{} or #content{}
(<h1>..</h1being inside #content div..) ??
thank you very much..
Comment