← All examples

CSS Look & feel substack.com

Substack: compact author header

Shrinks the post header: author avatar, title and padding, so the actual content starts sooner.

Code to copy

/* Compact author/publication header above each post */
.post-header,
.publication-header,
[class*="postHeader"] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.post-header img,
.publication-header img,
[class*="postHeader"] img[class*="avatar"] {
  width: 36px !important;
  height: 36px !important;
}
.post-header h1,
[class*="postHeader"] h1 {
  font-size: 28px !important;
  line-height: 1.25 !important;
}

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's CSS panel and save — the effect appears instantly.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases