![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
"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 |
|
|
|
#4 |
|
Posts: n/a
|
"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 |
|
|
|
#5 |
|
Posts: n/a
|
"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/> |
|
|
|
#6 |
|
Posts: n/a
|
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 |
|
|
|
#7 |
|
Posts: n/a
|
"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. |
|
|
|
#8 |
|
Posts: n/a
|
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? 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 =---- |
|
|
|
#9 |
|
Posts: n/a
|
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 =---- |
|
|
|
#10 |
|
Posts: n/a
|
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 | `-------------------------------------------------- --<--@ ------------' |
|