Grow your CSS skills. Land your dream job.

Sponsor: MyFonts – Subscription-Free Webfonts 

MyFonts is the best place to find, try, and buy fonts for your website. Their webfonts are flexible, easy to use, and don't require any monthly fees. Not only that, but you can try any font on your own site free for 30 days.

One thing that you may find appealing about MyFonts is that you host the fonts. That frees you up to use your own CDN, or use your own font loader, or integrate the fonts in whatever fashion works best for you. You have the control.

Looking for a little inspiration? Browse the 50 most popular fonts on the web right now.

Relating to “Designing for Performance” by Lara Hogan

I picked me up a copy of Lara Hogan's new book Designing for Performance (Amazon), as it's a subject I've very interested in these days. As I write this, I'm just off the heels of doing quite a bit of performance related work here on CSS-Tricks as well as on CodePen.

I thought I'd give the book a read, learn some more, and be inspired to do some more. Here's some choice quotes and how they relate to …

Read Article →

Capability Reporting with Service Worker 

We've heard 1,000 times: User Agent sniffing is bad news. We largely do it on the server because we want to know stuff about the client before we even send anything to the client. A worthy goal!

We've talked about this before. Perhaps you serve a little different JavaScript for a different approach to navigation. Or you set a cookie with client side data and use that to serve different image formats depending on support. Maybe you even refresh the page to ensure you have that data. There are even libraries for all this.

Service Workers, a brand new thing on the web, are uniquely qualified to help with this problem as they sit between the client and server and can manipulate requests to pass additional data.

More Elegant Fix for Jumping Scrollbar Issue 

If you move from one page of a site without a scrollbar to another with a scrollbar, you'll see a slight layout shift as things squeeze inward a bit to make room for the scrollbar.

A classic fix was html { overflow-y: scroll; } to force the scrollbar all the time. Ayke van Laƫthem has found a more elegant solution in html { margin-left: calc(100vw - 100%); } which works because vw accounts for the scrollbar and % doesn't, and... just read it as there are a few more things you'll need to be aware of anyway.

Pretty sweet for a first blog post Ayke!

SMACSS-Press

The following is a guest post by Scott Fennell. Scott saw a recent post here on CSS-Tricks about class names in WordPress and had some his own ideas about exerting control, rather than leaving things as they are. His idea is to enforce a more SMACSS style philosophy where possible.

Read Article →

Sponsor: Treehouse 

Treehouse has been a long time sponsor here on CSS-Tricks. You know them. They do online training for web and mobile design and development. Here's a couple of things that I think are especially cool about Treehouse:

  • There are conference videos in there you won't find anywhere else. I was just poking around and found three videos of me at conferences I was recently at!
  • There are of course tons of courses, but they are very well organized into tracks which help you focus on a path you're most interested in.
  • They walk the walk with a beautiful website themselves.
  • While I would never discourage anyone from going to a university, it's likely you'll learn more up-to-date practical tech on Treehouse for less than 1% of the cost.

I was talking with Micah, one of their guys over there, and he brought up a good point: while you can dig into Treehouse and binge learn for hours at a time, you can also learn a lot just by stopping in for 15 minutes a day.

(Advertising on CSS-Tricks)

Exposing Additional Form Fields via Checked Radio Buttons

There is a :checked pseudo class in CSS. I often think of it in connection with the "checkbox hack", in which you use it on a hidden checkbox with the ~ general sibling combinator to do simulate toggling behavior without any JavaScript. It's a hack because now you have these stray form elements on the page that really aren't for a form. Not a huge deal, as I'm sure you can work around it accessibility wise, but there is …

Read Article →

The CodePen Job Board 

We just launched it! It's a niche job board (of course) targeted at front end developers and designers.

Not only is it the CodePen Job Board, but it's also the official job board here on CSS-Tricks and on ShopTalk as well.

We hope it's both useful to those of you looking for jobs in this field and companies looking to hire.

More Blog Posts →

*May or may not contain any actual "CSS" or "Tricks".