Skip to content
0:00 / 0:00

#css#responsivedesign#fluidtypography

Keith J. Grant - Stop Thinking in Pixels

BocoupLLC

5.8K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2016 to 2021.
  • Presented by Keith J. Grant
  • May be out of date. Uploaded 10 years ago, in an area where tools change fast.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

10K views10 years ago2 recommendations

Web developmentCSS and layout

Keith J. Grant argues against using pixel units in CSS and explains how to use relative units like ems and rems for responsive design.

The uploader added no description.

Why it's here

2 people recommend this

What people say. Recommended for understanding responsive web design, fluid typography, and why to use relative CSS units instead of pixels.

Moments people linked to

u/MWrathDevin r/Frontend • Recommends

On “Why mobile first?”

It reads better in terms of media queries especially if you're using a preprocessor (most are capable of nesting) because it's easier mentally to think about and design for. People are doing tricks with `calc` now (Nice clip explaining @22mins) but you still need to do touch ups with media queries. Example of mobile first : .test-class { // Smallest mobile device (default everything under 640px) background-color: red; @media only screen and (min-width: 640px) { background-color: orange; } @media only screen and (min-width: 1200px) { background-color: yellow; } @media only screen and (min-width:…
3View on Reddit

u/Marble_Wraithin r/Frontend • Recommends

On “CSS best practises: percentages, ems or px? Sorry this must be the most basic question, but am ui ux designer trying to code my website.”

Essentially you want to watch this: link to this video And/or if you're really into math, this on fluid typography (i.e. how to apply linear interpolation to fonts and layout): link to this video As for how to structure things. I'm reading you're having problems with using em's. That's because em's inherit values. Meaning if you set em's on an element (`.parent`) and then set it again on a nested element (`.child`), the em value is like a percentage of the parent value. What you need to do is use Rem's. Typically i use Rem's for the "parent-level" component wrapping elements, then i use em's for the child elements.