Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

font sizes 1

Status
Not open for further replies.

malonep

Programmer
Jul 14, 2004
44
CA
I have a web page to maintain that is designed to be displayed in medium font.

If a user has their browser set to larger/largest font buttons etc are out of the display area.

I have tried to force the font to be medium with no luck

I have tried
#normal{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:400;
font-size:medium;
font-variant:normal;
}

and
<font size=10pt>
etc

This is never forcing the font to be medium it is still defaulting to what ever the browser is set at.

is there a way to truly force medium font

- or -

Is there a way to determine what text size the browser is set at and display a message if they are not on medium

Thanks,
 
Do you make it common practice to make your webpages accessible to only certain kinds of people?

Do successful businesses have their door accessible only by a steep staircase, allowing no way for a handicapped person to enter?

I suggest that rather than force the user to view your webpage in a font that he/she may not even be able to see, you design your website correctly so that it can support any size of font.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
I didn't design the webpage. I am just assigned to maintain it. And redesigning it is not an option.

I was just trying to make it some what user friendly. With at least a message stating the ideal font size for viewing.

 
Well, in IE, you could use a pixel font-size declaration.

Code:
body {
    font-size: 10px;
    }

This rendered the same size font for me in IE regardless of the size I set the font to in my preferences. However, it still increased/decreased in Netscape.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Just keep in mind also that a user can select "Ignore Font Sizes" in their browser preferences. There's no concrete way of forcing a user to see a certain font size.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top