[Project_owners] CSS help

eric.jung at yahoo.com eric.jung at yahoo.com
Tue Jun 19 06:11:41 PDT 2007

Hi Nickolay,

Using absolute sizes like px/mm/in was suggested to me. In this case, that will solve the problem, but on webpages (non-extensions), I'm told I *must* use relative sizes so that browser resizes and View->Text Size changes in the browser scale correctly. I don't know if it's accurate that the page won't scale correctly unless relative sizes are used, but it sounds reasonable.


----- Original Message ----
From: Nickolay Ponomarev <asqueella at gmail.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Tuesday, June 19, 2007 4:12:34 AM
Subject: Re: [Project_owners] CSS help

On 6/18/07, Eric H. Jung <eric.jung at yahoo.com> wrote:
> This isn't strictly an Firefox/Thunderbird add-on problem; I've encountered
> it with plain HTML/CSS, but now I *am* encountering it with an extension.
> The problem I'm trying to solve is how to use font-size to scale a button
> inside a heading (h1, h2, d3) element so it appears the same size as buttons
> *not* in a heading element. The best I've been able to do is approximate
> things by trying different font-sizes, but is there a way to explicitly make
> them equal sizes?
Use a size in pixels, like input {font-size: 16px}? The issue is that
the "em" unit is relative to the font size of the parent element, and
the h3 has an increased size.

(See http://www.w3.org/TR/REC-CSS2/fonts.html#font-size )

There are other workarounds possible, once you know the cause of the problem.

Project_owners mailing list
Project_owners at mozdev.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070619/140d0e28/attachment.html 

More information about the Project_owners mailing list