Subscribe: Comments for Thoughts From Eric
http://meyerweb.com/comments/feed/
Preview: Comments for Thoughts From Eric

Comments for Thoughts From Eric



Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it's largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff



Last Build Date: Fri, 23 Feb 2018 09:23:40 +0000

 






Comment on Displaying CSS Breakpoint Information with Generated Content by Pixels of the Week – February 23, 2018 - Stéphanie Walter, Visual and UX Designer, Mobile enthusiast

Fri, 23 Feb 2018 08:56:35 +0000

[…] Eric’s Archived Thoughts: Displaying CSS Breakpoint Information with Generated Content […]



Comment on Displaying CSS Breakpoint Information with Generated Content by Eric Meyer

Thu, 22 Feb 2018 14:29:30 +0000

rossry, the difference was actually the selector in the first block, which added an html to raise the selector’s specificity. Like I said, not a very scalable solution.

Emil, I think that’s a good use of variables. I may write a followup that explains that usage with credit to you, unless you’d rather write it up and I’ll add an addendum to this post pointing to your writeup.




Comment on Displaying CSS Breakpoint Information with Generated Content by Emil Björklund

Thu, 22 Feb 2018 09:51:56 +0000

This made me think of Jeremy's old question about detecting MQ:s in JS, to which I contributed a similar solution. I remember discussing at the time that CSS Variables would make that (task of communicating between CSS and JS) easier, but it was too early then to use them. Today, and for your use-case, I think they could be perfect though! Something like this, maybe?
body::after {
   content: var(--bp, 'narrow');
}

@media (min-width: 25em) {
  :root {--bp: '>=25em'}
}
JSBin demo here.



Comment on Displaying CSS Breakpoint Information with Generated Content by rossry

Wed, 21 Feb 2018 22:40:29 +0000

Was the second breakpoint in "specificity games" supposed to be something like @media (min-width:38em) and (max-width: 50em)? As written, it looks like it doesn't solve the problem.



Comment on Scaling SVG Clipping Paths for CSS Use by James Wills

Thu, 08 Feb 2018 08:29:27 +0000

Any chance you could provide a demo of the scaling working with the transform attribute? Every time I try this, I just get nothing displayed, as per https://codepen.io/wickywills/pen/YepbqP



Comment on Better PDF File Size Reduction in OS X by Zoe Cohen

Fri, 02 Feb 2018 21:05:29 +0000

This was so helpful for me when I was creating my (image-heavy) portfolio! Thank you so much for a simple and elegant solution! You're the best!



Comment on Headings and Labels by [Educator-Gold] [webdev] Web Design Update: January 25, 2018 – educatorgold

Mon, 29 Jan 2018 02:11:52 +0000

[…] https://meyerweb.com/eric/thoughts/2018/01/18/headings-and-labels/ […]



Comment on Reset Reloaded by How to line up HTML input elements? - ExceptionsHub

Sun, 28 Jan 2018 14:25:46 +0000

[…] the Eric Meyer CSS reset script does not help this issue, however if you simply make your