How can I make a layout respond to its container instead of the viewport?
Use a CSS size container and an `@container` rule to adapt a component to its parent’s available width, rather than the browser window.
Recent chatsGEEZ AT WORK
Questions, practical answers, and useful follow-ups to help you work through the details.
Showing 265–288 of 845 guides
Use a CSS size container and an `@container` rule to adapt a component to its parent’s available width, rather than the browser window.
Choose the right attribute-selector operator for exact values, starts and ends, contained text, or individual words in a whitespace-separated list.
Understand why normal-flow vertical margins merge, reproduce the behavior, and choose CSS spacing that is predictable.
Learn how :has() anchors a relationship to each candidate element, with descendant, direct-child, and sibling examples plus a debugging checklist.
Use a flexible Grid track with a minimum size, then let the layout fit as many columns as the container can hold.
Use a concise summary that names the change and, when helpful, its purpose; adapt the format to your project and keep details relevant to this commit.
Use a compact, table-by-table reference to record each integrity rule, its purpose, and a concrete example—without turning the document into a migration guide.
Extract duplicated logic in small steps, compare before-and-after results, and check edge cases so you can spot behavior changes.
Learn to document a function’s purpose, inputs, result, and meaningful errors with a concise before-and-after example and checklist.
Give readers the smallest runnable example, exact inputs, expected and actual results, and traceback needed to reproduce a Python function bug.
Keep existing results visible during refresh, show a clear progress message, and distinguish an update failure from an initial load or an empty result.
Separate automatic retries from user-triggered retries, show each attempt clearly, and make repeated failure lead to a visible stop state.
Place two Grid items in the same cell or intersecting areas, then size the container and adjust alignment and stacking for the overlay you want.
Learn when to use `align-items` instead of `align-content`, with a CSS example for aligning items at the top of a row.
Use `grid-column` with a starting grid line and a span count, then check how the other items auto-place around it.
Compare how auto-fit and auto-fill handle empty columns, see matching CSS examples, and choose the behavior that suits your card layout.
Use flex-grow on the item that should expand, keep neighboring items from growing, and check what happens when the row has no spare room.
Use `align-self` on one flex item to override the container’s shared cross-axis alignment without changing the others.
Choose a `justify-content` value to distribute leftover space between flex items and at the container edges, with a copyable example.
Learn what belongs in a disclosure label versus its revealed content, with a short HTML example and a checklist for clear summaries.
Learn how to make complex table relationships explicit with header IDs, then review a worked example and checklist.
Add a labeled WebVTT captions track inside the video, then place a clearly labeled transcript or transcript link nearby so viewers can find both.
Learn when to provide a transcript, where to place it, and how to pair a recording with a clearly labeled text alternative.
Separate the diagram’s brief alt text from its full explanation, then place the explanation where readers can find and navigate it.
YOUR QUESTION. YOUR DETAILS.
Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.