PDA

View Full Version : simple html question - fixed font size?


mblue
04-05-2001, 01:48 PM
I want to use text links on a sidebar menu and would like to have the font size fixed so that even if a user increases the font size in their browser the menu will still look right. I could use graphics to solve this problem, but I want to stay with text.

I've tried css with font size specified as small and as 14pt, but these still get larger if browser font size is increased.

Any suggestions?

mblue

mark_olson
04-06-2001, 09:28 PM
Have you tried using 14px instead of 14pt?

body
{
font: 18px Arial;
}

works fine for me.

mblue
04-07-2001, 11:29 AM
Thanks, using px instead of pt helps, at least with Navigator. The text still changes size in Explorer (on a mac anyway). This will have to do. Thanks for your help

mblue

mark_olson
04-07-2001, 01:38 PM
Anytime

ff92k
04-07-2001, 06:39 PM
i've meant to ask this....On your site, how do you get thge mouse over effects? with the lines under and over the top of all the words...Thanks

mark_olson
04-07-2001, 10:16 PM
this is from my stylesheet
a{
font: 12px Arial;
color: #000;
text-decoration: none;
}
a:hover {
color: #000;
text-decoration: underline;
}
a:active {
color: #000;
text-decoration: overline;
}
A:visited {
color: #000;
text-decoration: underline
}

a{ is what is shown for a the default/nonvisited link
a:hover{ is what is shown when the mouse is over a link
a:active is what is shown when a link is clicked, and the action is being performed.
a:visited is what is shown for a previously clicked link

sHadyGrady
04-21-2001, 07:23 AM
Mac and PC use differnt PX per inch I think PC;s are 72 and macs are 78 or somethin like that