Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - CSS Font Size Question

 
Thread Tools Search this Thread
Old 02-10-2005, 09:25 AM   #1
Default CSS Font Size Question


I am not very good at CSS but I am learning.

A simple question. I want to do my font sizes so they are a specific size
to begin with but then so that they also scale when a user changes the text
size in their browser.

How can I achieve this?

Thank you




K
  Reply With Quote
Old 02-10-2005, 10:19 AM   #2
Bernhard Sturm
 
Posts: n/a
Default Re: CSS Font Size Question

K wrote:
> I am not very good at CSS but I am learning.
>
> A simple question. I want to do my font sizes so they are a specific size
> to begin with but then so that they also scale when a user changes the text
> size in their browser.
>
> How can I achieve this?


define in your body element a specific % value for the default font-size
(e.g. body {font-size:85%;})

define all your font-size in your CSS rules with ems
e.g. h1 {font-size:2em;}

This is one approach, another would be to use keywords for your font-sizes.

HTH
bernhard


--
www.daszeichen.ch
remove nixspam to reply
  Reply With Quote
Old 02-10-2005, 10:22 AM   #3
Jukka K. Korpela
 
Posts: n/a
Default Re: CSS Font Size Question

"K" <@.> wrote:

> I am not very good at CSS but I am learning.


Then don't set any font sizes.

> I want to do my font sizes so they are a specific size to begin with


Stop wanting that. Just as you shouldn't want to set a specific volume
(for aural rendering) or the size of dots used in Braille rendering.

> but then so that they also scale when a user changes
> the text size in their browser.


The user can change the font size, though people often don't know how to.
As an author you can make it more difficult to most people by trying
to enforce your idea of font size.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Old 02-10-2005, 10:34 AM   #4
K
 
Posts: n/a
Default Re: CSS Font Size Question

"Bernhard Sturm" <> wrote in message
news:420b3543$...
>K wrote:
>> I am not very good at CSS but I am learning.
>>
>> A simple question. I want to do my font sizes so they are a specific
>> size to begin with but then so that they also scale when a user changes
>> the text size in their browser.
>>
>> How can I achieve this?

>
> define in your body element a specific % value for the default font-size
> (e.g. body {font-size:85%;})
>
> define all your font-size in your CSS rules with ems
> e.g. h1 {font-size:2em;}
>
> This is one approach, another would be to use keywords for your
> font-sizes.
>
> HTH
> bernhard


In IE the menu option to change text size is Smallest, Smaller, Medium,
Larger, Largest.

Do you know what percentages would match each of these?

Thanks


  Reply With Quote
Old 02-10-2005, 11:08 AM   #5
Steve Pugh
 
Posts: n/a
Default Re: CSS Font Size Question

"K" <@.> wrote:

>In IE the menu option to change text size is Smallest, Smaller, Medium,
>Larger, Largest.
>
>Do you know what percentages would match each of these?


They're all 100%. Those are the user's options for their default font
size, hence 100% will equal whatever the currently selected option is.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
  Reply With Quote
Old 02-11-2005, 07:51 AM   #6
Jukka K. Korpela
 
Posts: n/a
Default Re: CSS Font Size Question

Bernhard Sturm <> wrote:

> define in your body element a specific % value for the default font-size
> (e.g. body {font-size:85%;})


That would mean saying that you know that all users have chosen to use a
browser's font size setting that is exactly 15 % smaller than they should
be using.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Old 02-11-2005, 08:01 AM   #7
rf
 
Posts: n/a
Default Re: CSS Font Size Question

"Jukka K. Korpela" <> wrote
> Bernhard Sturm <> wrote:
>
> > define in your body element a specific % value for the default font-size
> > (e.g. body {font-size:85%;})

>
> That would mean saying that you know that all users have chosen to use a
> browser's font size setting that is exactly 15 % smaller than they should
> be using.


Er, you mean 17.6% larger then they should be using, and applying the 85%
puts it back to 100%, what they should be using.

IMHO the 85% really means that Bernhard has *his* browser settings 17.6%
larger then *he* should be using. If *he* set *his* browser up correctly
then text would look exactly fine to *him* at 100%

--
Cheers
Richard.



  Reply With Quote
Old 02-12-2005, 06:00 PM   #8
Bernhard Sturm
 
Posts: n/a
Default Re: CSS Font Size Question

rf wrote:

> IMHO the 85% really means that Bernhard has *his* browser settings 17.6%
> larger then *he* should be using. If *he* set *his* browser up correctly
> then text would look exactly fine to *him* at 100%


which in turn would mean, that all others have set their browser font
size settings 17.6% lower than they should be

BTW: do you know where to set the default font-size in IE6.x?
so you see... not everybody (read at least 80%) is able to define
their font-sizes in the UA

--
www.daszeichen.ch
remove nixspam to reply

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Reply With Quote
Old 02-12-2005, 06:08 PM   #9
Bernhard Sturm
 
Posts: n/a
Default Re: CSS Font Size Question

Jukka K. Korpela wrote:
>
> The user can change the font size, though people often don't know how to.


where do you define the default font-size in IE?
I know where to define it for mozilla and opera, but couldn't figure out
where to define it in IE. As at least 80% of the users are still using
IE, this is something you should take into account as an author as well.

--
www.daszeichen.ch
remove nixspam to reply

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Reply With Quote
Old 02-12-2005, 06:19 PM   #10
Barbara de Zoete
 
Posts: n/a
Default Re: CSS Font Size Question

On Sat, 12 Feb 2005 19:08:04 +0100, Bernhard Sturm <>
wrote:

> Jukka K. Korpela wrote:
> >
>> The user can change the font size, though people often don't know how to.

>
> where do you define the default font-size in IE?


In IE6 one can set font-size. (I have to translate the menu's from Dutch, so the
actual frases in the menu's might be different)

[Menu: Extra] > [Item: Internet Options] > [Tab: General] > [Button: Colors] OR
[Button: Lettertype]
With these two you can set specific font-family and size and specific colors.

Then, with:
[Menu: Extra] > [Item: Internet Options] > [Tab: General] > [Button:
Accessibility]
In the dialog that pops up, you can turn off the use of font-sizes,
font-families and colors as set by webauthor. You can even set your own
stylesheet in that dialog.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump