Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tim Dawson
Thanks to all those who have replied. Changing the media query limits to ems at the rate of 1em = 16 pixels worked well. Likewise for div widths and anywhere with default text size. But widths, margins (in fact any dimension you care to name) went haywire in headings h? with a different

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tim Climis
On Saturday, April 19, 2014 01:27:12 PM Tim Dawson wrote: I'm tempted to leave margins, padding etc. in headings as pixels and just change them in the media query if they become unworkable. Particularly when it comes to small spaces (1-10 pixels, say) it seems very fiddly to deal with

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tedd Sperling
On Apr 19, 2014, at 8:27 AM, Tim Dawson t...@ramasaig.com wrote: Changing the media query limits to ems at the rate of 1em = 16 pixels worked well. Likewise for div widths and anywhere with default text size. But widths, margins (in fact any dimension you care to name) went haywire in

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread MiB
apr 19 2014 16:00 Tedd Sperling t...@sperling.com: 4. Lastly, use ems for images as well. That way your entire site scales well with zooms. Here's my write-up on it: The downside is unacceptable to me, as ems for image width doesn’t respect zoom only text”. I’d use percentages for width

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tim Dawson
On 19/04/2014 15:00, Tedd Sperling wrote: I don't understand your statement Obviously the em value has to be reduced as the font-size increases, to get the same pixel equivalent. Given that my original margin/padding around an h1 with font-size 250% was in pixels, when I converted at 1 em = 16

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tedd Sperling
On Apr 19, 2014, at 4:19 PM, Tim Dawson t...@ramasaig.com wrote: On 19/04/2014 15:00, Tedd Sperling wrote: I don't understand your statement Obviously the em value has to be reduced as the font-size increases, to get the same pixel equivalent. Given that my original margin/padding around an

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tedd Sperling
Hi gang: Is anyone else receiving inappropriate pics with this subject line? Cheers, tedd ___ tedd sperling t...@sperling.com __ css-discuss [css-d@lists.css-discuss.org]

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Georg
Den 19.04.2014 16:00, Tedd Sperling wrote: 4. Lastly, use ems for images as well. That way your entire site scales well with zooms. I find there is something wrong/missing in that statement, as images scale with browser-zoom no matter how we define sizes. Of course no harm done in setting

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tim Dawson
On 19/04/2014 22:56, Tedd Sperling wrote: On Apr 19, 2014, at 4:19 PM, Tim Dawson t...@ramasaig.com wrote: On 19/04/2014 15:00, Tedd Sperling wrote: I don't understand your statement Obviously the em value has to be reduced as the font-size increases, to get the same pixel equivalent. Given

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tedd Sperling
On Apr 19, 2014, at 8:11 PM, Tim Dawson t...@ramasaig.com wrote: On 19/04/2014 15:00, Tedd Sperling wrote: I just set my h? to whatever size I want knowing that 1em is equal (in most cases) to 16 pixels. No need for percentages in setting font sizes. If you set your font-sizes in ems then I

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Tedd Sperling
On Apr 19, 2014, at 7:00 PM, Georg ge...@gunlaug.com wrote: Den 19.04.2014 16:00, Tedd Sperling wrote: 4. Lastly, use ems for images as well. That way your entire site scales well with zooms. I find there is something wrong/missing in that statement, as images scale with browser-zoom no

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-19 Thread Georg
Den 20.04.2014 04:14, Tedd Sperling wrote: The thing that was missing is I should have added that *all* measurements are done in ems and thus no scaling difference between text and images thereby holding the layout static. Which is what I object to. Text-only zoom should not be made to

[css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread Tim Dawson
I've been following another thread (Phone breaks), and I can see the advantage of using 'ems' rather than pixels for media queries. So if I'm using 'px' now but would like to change to 'em', how do I calculate how many 'em' to allow for my 960px starting point ? To add to my confusion my

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread Felix Miata
On 2014-04-18 17:53 (GMT+0100) Tim Dawson composed: I've been following another thread (Phone breaks), and I can see the advantage of using 'ems' rather than pixels for media queries. So if I'm using 'px' now but would like to change to 'em', how do I calculate how many 'em' to allow

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread Felix Miata
On 2014-04-18 17:53 (GMT+0100) Tim Dawson composed: I've been following another thread (Phone breaks), and I can see the advantage of using 'ems' rather than pixels for media queries. So if I'm using 'px' now but would like to change to 'em', how do I calculate how many 'em' to allow

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread Freelance Traveller
On Fri, 18 Apr 2014 17:53:37 +0100, Tim Dawson t...@ramasaig.com wrote: I've been following another thread (Phone breaks), and I can see the advantage of using 'ems' rather than pixels for media queries. So if I'm using 'px' now but would like to change to 'em', how do I calculate how

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread Tom Livingston
On Fri, Apr 18, 2014 at 4:03 PM, Freelance Traveller edi...@freelancetraveller.com wrote: On Fri, 18 Apr 2014 17:53:37 +0100, Tim Dawson t...@ramasaig.com wrote: I've been following another thread (Phone breaks), and I can see the advantage of using 'ems' rather than pixels for media

Re: [css-d] Media Queries: How many pixels make an em ?

2014-04-18 Thread David Hucklesby
On 4/18/14, 2:10 PM, Tom Livingston wrote: On Fri, Apr 18, 2014 at 4:03 PM, Freelance Traveller edi...@freelancetraveller.com wrote: On Fri, 18 Apr 2014 17:53:37 +0100, Tim Dawson t...@ramasaig.com wrote: I've been following another thread (Phone breaks), and I can see the advantage of