On 6/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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. >
AFAIK, only IE doesn't properly resize px-sized text. Don't know if it's a good practice to use ems for setting text size in general and why. If you must use relative sizing, you could set font-size for h3 explicitly, then adjust font-size for h3->input so that input_font_size = h3_font_size * h3_input_font_size (so basically what you were doing, except not relying on the default style for h3) Nickolay > Thanks, > Eric > > > ----- Original Message ---- > From: Nickolay Ponomarev <[EMAIL PROTECTED]> > To: Mozdev Project Owners List <[email protected]> > Sent: Tuesday, June 19, 2007 4:12:34 AM > Subject: Re: [Project_owners] CSS help > > > On 6/18/07, Eric H. Jung <[EMAIL PROTECTED]> 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. > > Nickolay > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > > > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
