Relative Content

Tag Archive for csstailwind-css

How can I prevent overlapping grid columns, and use horizontal snap scrolling for mobile?

I built myself a little weekly forecast app for an exercise and I’m using TailwindCSS. On medium sized screens and larger, I have the layout pretty much how I’d like it (still tweaking). There are two columns, day-time weather data on the left, night-time weather data on the right. Each row is one day. Vertical scrolling should be fine for desktop.

Avoid “jumping” behavior on sticky sidebar

I’m using Tailwind and setting up a left panel with a right hand sidepanel. The left hand panel is dynamic and can have content added to it that expands it vertically. The right hand sidepanel is longer than the height of a screen, and should be sticky so that it never fully leaves the screen.