[{"id":"tailwindintermediate-001","courseId":"tailwind-intermediate","domain":"core-utilities","topic":"Sticky positioning stages","prompt":"A sticky header sits near the top of a long page. Put these stages of its behaviour in the order they happen as the page is scrolled.","hint":"Consider which two things can trigger a change in this element's placement.","explain":"Placement can follow the document's layout or be held against the viewport. A scroll-driven rule decides when the switch happens, watching the element and a surrounding box.","source":"https://tailwindcss.com/docs/position","interaction":{"type":"sort","items":[{"text":"Sits in its normal place in the flow","why":"The page says the element is positioned as relative until it crosses a specified threshold, so this state comes first."},{"text":"Crosses its specified threshold","why":"Crossing the threshold is the event that ends the relative state and starts the fixed one."},{"text":"Stays fixed while its parent is still on screen","why":"The page says the element is treated as fixed until its parent is off screen, so this state lasts until then."},{"text":"Its parent leaves the screen","why":"The fixed state ends when the parent is off screen, which makes this the last event in the sequence."}]},"options":[],"answer":"o:abcd","explanation":"Sticky positioning behaves as relative until the element crosses a specified threshold, then as fixed until its parent is off screen.","concept":"Sticky positioning behaves as relative until the element crosses a specified threshold, then as fixed until its parent is off screen.","rev":1,"updatedAt":"2026-10-26","kind":"scenario","takeaways":["A sticky element changes how it is placed at a scroll threshold, and again when its parent leaves the screen."]},{"id":"tailwindintermediate-002","courseId":"tailwind-intermediate","domain":"core-utilities","topic":"Stack order with z-index","prompt":"Two overlapping cards use the classes z-40 and z-10. A teammate swaps their order in the markup. Does the layering between the two cards change?","hint":"Compare what the utility controls with where the element sits in the source.","explain":"Where an element appears in the page's source is one question. A separate utility can name the layer an element occupies, and that choice can be changed without moving anything.","source":"https://tailwindcss.com/docs/z-index","interaction":{"type":"single"},"options":[{"id":"a","text":"No, the z- classes decide the layering, not the markup order.","why":"The page says the z- utilities control stack order regardless of the order the element is displayed."},{"id":"b","text":"Yes, the card written last is always drawn on top.","whyNot":"Being written later gives no layering advantage, because the z- utilities control the stack regardless of display order."},{"id":"c","text":"Yes, swapping reshuffles the stack because the browser reorders overlapping cards.","whyNot":"Reordering the markup does not reorder layers; the page ties the stack to the z- utilities, not to display order."},{"id":"d","text":"Yes, but only when both cards use the same z- value.","whyNot":"The z- utilities control stacking regardless of display order, with no exception for equal values."}],"answer":"a","explanation":"z-index utilities set stack order regardless of where an element appears in the markup.","concept":"z-index utilities set stack order regardless of where an element appears in the markup.","rev":1,"updatedAt":"2026-10-26","kind":"scenario","takeaways":["Stacking is set by z- utilities, not by the order elements are written."]},{"id":"tailwindintermediate-003","courseId":"tailwind-intermediate","domain":"core-utilities","topic":"Clipping with overflow-hidden","prompt":"A card holds more text than its box has room for. Which TWO statements about the overflow utilities are correct?","hint":"Think about what happens to the extra content, and whether a scrollbar is offered.","explain":"Content larger than its box has to be handled somehow: it can spill out, be cut off, or offer a way to be reached. Each axis can be handled on its own.","source":"https://tailwindcss.com/docs/overflow","interaction":{"type":"multiple","tellCount":true},"options":[{"id":"a","text":"overflow-hidden clips content that runs past the element's edges.","why":"Hidden clips any content that overflows the element's bounds, so the excess is not visible."},{"id":"b","text":"overflow-auto shows scrollbars only when the content needs them.","why":"Auto adds scrollbars only when scrolling is necessary; overflow-scroll always shows them."},{"id":"c","text":"overflow-scroll shows scrollbars only when the content needs them.","whyNot":"That describes auto. Scroll always shows scrollbars, unless the operating system hides them."},{"id":"d","text":"overflow-visible clips content at the element's edges.","whyNot":"Visible is the setting that stops clipping, so overflowing content shows outside the element."},{"id":"e","text":"overflow-hidden adds scrollbars so visitors can reach the clipped part.","whyNot":"Hidden clips the overflow; the scrollbar utilities are the auto and scroll ones."},{"id":"f","text":"overflow-y-auto allows sideways scrolling when content is too wide.","whyNot":"The y- utilities control vertical overflow; sideways scrolling uses the x- variants."}],"answer":"ab","explanation":"overflow-hidden clips overflowing content, overflow-auto shows scrollbars only when needed, and overflow-scroll always shows them.","concept":"overflow-hidden clips overflowing content, overflow-auto shows scrollbars only when needed, and overflow-scroll always shows them.","rev":1,"updatedAt":"2026-10-26","kind":"scenario","takeaways":["Use overflow-auto when scrollbars should appear only if content overflows."]},{"id":"tailwindintermediate-004","courseId":"tailwind-intermediate","domain":"core-utilities","topic":"Line clamping with line-clamp","prompt":"Applying line-clamp-3 to a paragraph cuts the text off after its first three words.","hint":"Think about what unit the number in the class name counts.","explain":"Some clamping utilities limit a block by a unit of its layout rather than by individual characters. Consider which unit the number in this class's name counts.","source":"https://tailwindcss.com/docs/line-clamp","interaction":{"type":"true-false"},"options":[{"id":"a","text":"True","whyNot":"line-clamp-3 counts lines of multi-line text, not words, so the cut comes after three lines."},{"id":"b","text":"False","why":"The utility truncates multi-line text after a specific number of lines, not after a number of words."}],"answer":"b","explanation":"line-clamp-<number> truncates multi-line text after that many lines, using -webkit-line-clamp.","concept":"line-clamp-<number> truncates multi-line text after that many lines, using -webkit-line-clamp.","rev":1,"updatedAt":"2026-10-26","kind":"scenario","takeaways":["line-clamp counts lines of text, not words or characters."]},{"id":"tailwindintermediate-005","courseId":"tailwind-intermediate","domain":"core-utilities","topic":"Image fit with object-cover","prompt":"A photo sits in a fixed-size box and must fill the whole box. Which class makes the image cover its container?","hint":"Each fit class decides how the image is resized inside its box.","explain":"A replaced element such as an image can be resized inside its box in several ways. Each way sets how the image's own size relates to the box, and some leave parts of the image outside it.","source":"https://tailwindcss.com/docs/object-fit","interaction":{"type":"single"},"options":[{"id":"a","text":"object-contain","whyNot":"Contain keeps the whole image within its container rather than covering it."},{"id":"b","text":"object-cover","why":"Cover resizes the image so that it covers its container."},{"id":"c","text":"object-fill","whyNot":"Fill stretches the image to match the container exactly, rather than covering it."},{"id":"d","text":"object-none","whyNot":"None displays the image at its original size, ignoring the container size."}],"answer":"b","explanation":"object-cover resizes replaced content to cover its container, while object-contain keeps it within the container.","concept":"object-cover resizes replaced content to cover its container, while object-contain keeps it within the container.","rev":1,"updatedAt":"2026-10-26","kind":"scenario","takeaways":["Use object-cover when an image must fill its box completely."]}]