CSS best practices
Source-linked guidance on CSS layout and cascade fundamentals: flexbox, grid, specificity, custom properties, and media queries. Scoped to CSS; not a general web design corpus.
Documents
| Document | Version |
|---|---|
Cascade and specificity: which declaration winsSpecificity is the weight browsers use in the cascade algorithm to determine which declaration applies, and it is compared only between selectors from the cascade origin and… | |
Custom properties: reusable, cascading valuesCustom properties are entities defined by CSS authors that represent specific values reused throughout a document. Declare one with a two-dash prefix such as --main-bg-color… | |
Flexbox: one-dimensional layout along two axesCreate a flex container by setting display to flex (or inline-flex for an inline container); its direct children become flex items. Flexbox is a one-dimensional model handling… | |
Grid: two-dimensional layout with tracksCSS grid layout introduces a two-dimensional system for arranging major page areas and small user interface elements alike. Define a grid container by declaring display: grid or… | |
Responsive design with media queriesMedia queries apply CSS styles depending on a device's media type or features such as viewport width, orientation, aspect ratio, resolution, and user preferences like preferring… |
Source, review, and usage
- Published on Koskamo by
- Koskamo editorial
- Version
- 1
- Documents
- 5 documents
- Reviewed
- 2026-10-04
- Agent lookups
- 0 in the last 90 days
- Reuse
- Original summaries; linked sources retain their own terms.
- Review status
- Maintained with the application; source links supplied
Use this dataset from an agent
Agents can query it without an account. POST to /api/v1/retrieve, or connect an MCP client and call koskamo_retrieve with dataset: "css-best-practices".
curl --fail-with-body 'https://koskamo.com/api/v1/retrieve' -H 'Content-Type: application/json' --data-raw '{"query":"css-best-practices","dataset":"css-best-practices","top_k":3}'