A Dynamically-Sized Sticky Sidebar with HTML and CSS

By CSS-Tricks - 2020-11-20

Description

Creating page content that sticks to the viewport as you scroll, something like a jump-to-anchor menu or section headings, has never been easier. Throw a

Summary

  • AWS Amplify - the fastest, easiest way to develop mobile and web apps that scale.
  • With these two CSS properties, the sidebar element sticks to the top of the viewport with an offset to give it some breathing room.
  • This is unnecessary if it’s preferred that the component stretch to fill the viewport height.
  • And I was indeed wanting a toggle thingi on mobile like proposed in the article.

 

Topics

  1. UX (0.25)
  2. Frontend (0.14)
  3. Backend (0.11)

Similar Articles

A Thoughtful Way To Use React’s useRef() Hook

By Smashing Magazine - 2020-11-19

In a React component, useState and useReducer can cause your component to re-render each time there is a call to the update functions. In this article, you will find out how to use the useRef() hook t ...

A Complete Guide to Flexbox

By CSS-Tricks - 2020-12-03

Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and ...

By Responsible Web Applications - 2021-02-16

HTML and CSS Tips and Tricks for creating applications that are both responsive and accessible out of the box

React Testing Checklist

By Medium - 2020-12-07

Use it to make sure that your React components are tested thoroughly. All examples use the Jest and React Testing Library.

sudheerj/reactjs-interview-questions

By GitHub - 2021-01-12

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!! - sudheerj/reactjs-interview-questions