container-lines

Adds vertical container guide lines and corner squares to web layouts using CSS.

Updated May 5, 2026
One-click install
npx skills add https://github.com/josippapez/ai-setup --skill container-lines-josippapez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-lines
Source: https://github.com/josippapez/ai-setup/tree/main/claude/plugins/better-design/skills/container-lines
Command: npx skills add https://github.com/josippapez/ai-setup --skill container-lines-josippapez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web pages often feel visually loose and unstructured, lacking the subtle grid tension that makes layouts look precise and intentional. This Skill provides a repeatable CSS pattern for drawing thin vertical guide lines at the content container edges plus small corner squares, giving pages a measured, editorial structure without heavy decoration. ## Core Features & Use Cases - Container Edge Lines: Renders 1px vertical lines aligned exactly with the content container's left and right edges using pseudo-elements and shared CSS custom properties. - Corner Squares: Places small (4px-8px) squares at section corners for a precise, technical framing effect. - Responsive Alignment: Uses max() and clamp() so lines stay aligned with the container across viewport sizes, with pointer events disabled so guides never block UI. - Use Case: A designer building a product landing page wants subtle structural guides behind the hero and feature sections; this Skill supplies the tokens, pseudo-element CSS, and HTML markup to implement them consistently. ## Quick Start Add vertical container guide lines with corner squares to my landing page layout using the container-lines pattern.

Frequently Asked Questions about container-lines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add vertical guide lines to a web page container?

Use ::before and ::after pseudo-elements on a layout wrapper, positioned absolutely at the left and right container edges with 1px width and low opacity. Compute the offsets with max() combining container padding and (100vw - max-width) / 2 so lines track the container responsively.

How to create corner square markers in CSS?

Place small absolutely positioned span elements inside a relative section, sized 4px to 8px, and anchor them to each corner with top/right/bottom/left plus translate(-50%, -50%) style offsets. Use a slightly stronger line color so the squares read as precise markers.

Why do my layout guide lines block clicks on page content?

Guide lines block interaction when pointer-events is not disabled on the pseudo-elements or marker elements. Set pointer-events: none on the lines and corner squares, and keep them behind content with a negative z-index inside an isolated stacking context.

Do container guide lines work on mobile viewports?

Yes, when the line offsets use max() with a fluid padding value like clamp(20px, 4vw, 48px), the lines fall back to the padding edge on narrow screens. Verify enough padding remains between the line and content on small devices.

When should I avoid using container guide lines in a design?

Avoid them on nested components or every section, since overuse turns structure into noise. They suit page-level or major-section framing, and bright accent colors should be avoided unless the whole visual system is technical or industrial.