You are here: Re: new CSS tutorial « HTML « IT news, forums, messages
Re: new CSS tutorial

Posted by Chris F.A. Johnson on 08/07/06 02:17

On 2006-08-07, jokla wrote:
>> Where is there? This is a Usenet newsgroup, not a Google Group.
>> Other people may not have seen or may not have access to the
>> previous post. Please quote enough of the message you are replying
>> to give the context.
>
> I didn't know this . . . it's my fault . . . sorry.

That's all right. One learns.

>> What's normal? If you set the font size to 63% of my default size,
>> I will not be able to read it.
>
> So if you didn't see the original message I wrote this is what I ment
> with it.

In my case, I had read it, but I had also read hundreds of other
messages in between, so I don't remember what it said. I may or
may not be able to retrieve that message, and I may or may not be
interested in making that effort.

> If you use % for font size, for example 110%, you'll see a minimal
> difference in the size in different browsers.
>
> So if you write the following in your css file
>
> html { font-size: 62.5%; }
>
> you'll reset the default font-size to 10px,

No, you will not. You will set it to 62.5% of the size that I feel
comfortable reading, making it illegible. That may or may not be
10px.

> this is a cross-browser setting. Now if you go to body ( or class,
> id's etc ) and write 100%, you'll have a font-size of 10px, 110%
> will give you 11px and so on.

If you use 'html { font-size: 100%; }', then 110% will give me a
font slightly larger than my preferred size -- which is what you
should do.

> When talking about the minimal difference in browsers I was talking
> about Opera for example. It was mentioned that this has been fixed
> since Opera v7, but it seems not in the newer versions of Opera I have.
> Also it was mentioned that if someone has the minimum font size set to
> different then the browser default, this user will see this font-size
> as normal instead of 10px . . .

You have no idea what 10px will look like in anyone's browser. On
mine, it would be illegible.

> Most users don't change anything in their browsers, so it's been used
> the way it has been installed, and for those users the site will look
> exactly like the designer did it.

More and more people are using Firefox, which uses a sensible size.

> I had some non-defualt setting in different browsers and did a
> website/style that way and in the end I got only complaints about the
> website/style not working correctly, so I've changes all browsers to
> default and create everything for this setting.

If you make it work at a fixed size, it will not work at any other
size.


--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация