On Mon, Sep 1, 2008 at 16:38, Daniel Convissor
<[EMAIL PROTECTED]> wrote:
> Hi Ross:
>
> On Sat, Aug 30, 2008 at 11:57:55AM +0100, Ross Masters wrote:
>> On Sat, Aug 30, 2008 at 05:04 AM, Daniel Convissor wrote:
>>
>>>> The font size is nowhere hardcoded. It uses em and %.
>>>
>>> That's hard coding.  We shouldn't be setting it at all.
>>
>> It's not hard coding here. Let me explain:
>>
>> Using em measurements we can set a font to be proportionally bigger or
>> smaller than the font-size for it's container. For example:
>>
>> body { font-size: 0.75em; }   /* Set all fonts to be 0.75 * the browser
>> size */
>> body h1 { font-size: 1.25em; }  /* Set h1 elements to be 1.25 * it's
>> container */
>> body p { font-size: 1.00em; }  /* Set p elements to be the same size as
>> it's container (0.75) */
>
> Exactly.  Okay, let's stop arguing about semantics of the meaning of
> "hard coding."

I had a very hard time understanding what you meant with "hard coding"
as it definitely wasn't *hardcoded*. Using % and ems is the way to go
exactly for this reason; give the user the choice of resizing.

>  The example you're giving me above is telling the browser
> to render the fonts to .75 of normal.  I am firmly against any CSS
> telling the browser to render a page's main content in any size other
> than the browser's default.

Thats interesting. Firebug tells me the font size is 100%..


>> If we didn't set font-sizes at all all text would be the same size
>> (assuming we're using a CSS Reset) which is pretty ugly :-)
>
> Perhaps I misunderstand what you mean by "all text would be the same
> size."  I downloaded the home page and CSS from pb11, took out all CSS
> except the resets, then refreshed.  The various header (h1, h2, etc)
> element sizes behaved normally (with h2 being larger than normal and h1
> being larger than that, etc).

The footer text size should not be the same size as the main content.
The main content size should not be the same size as menu items.
...

-Hannes

Reply via email to