modern-css.com valid
modern-css.com
Every old CSS hack next to its clean, modern replacement. The old way and the modern way, side by side.
For agents: Reference site pairing old CSS hacks with their modern replacements, showing the outdated way and the current way side by side.
csscss hacksmodern cssweb developmentcss reference
Their llms.txt
The beginning of the file, from our validated copy saved 2026-10-21T14:46:29.528Z. Cached copy · Source on modern-css.com
# modern-css.com
> Every old CSS hack next to its clean, modern replacement. The old way and the modern way, side by side.
modern-css.com is a reference site for web developers. It shows side-by-side comparisons of outdated CSS patterns and their modern native replacements, plus in-depth tutorials and a curated resource directory.
Full content (all 117 snippets with explanations and code): https://modern-css.com/llms-full.txt
## Content
Each comparison includes:
- The old approach (what developers used before)
- The modern approach (what native CSS supports now)
- A live interactive demo
- Browser support data with Baseline status (widely/newly/limited availability)
- MDN documentation links and caniuse.com links
- Polyfill links where available
- A plain-language explanation of how the modern approach works
Snippets can be filtered by Baseline availability status on the home and category pages.
## Topics covered
- Centering elements: absolute + transform vs grid place-items
- Overflow-safe centering: media query flex-start vs justify-content: safe center
- Parent selection: JavaScript closest() vs CSS :has()
- Color mixing: Sass mix() vs native color-mix()
- Responsive components: @media vs @container queries
- Selector nesting: Sass/Less vs native CSS nesting
- Scroll animations: IntersectionObserver vs animation-timeline
- Sticky headers: JavaScript scroll listeners vs position: sticky
- Aspect ratios: padding-top hack vs aspect-ratio property
- Spacing elements: margin hacks vs gap property
- Fluid typography: media query breakpoints vs clamp()
- Theme variables: Sass variables vs CSS custom properties
- Specificity control: !important vs @layer cascade layers
- Focus styles: :focus vs :focus-visible
- Selector grouping: repetition vs :is()
- Form controls: appearance: none rebuild vs accent-color
- Nested grids: duplicate tracks vs subgrid
- Masonry layouts: Masonry.js / column-count vs display: grid-lanes
- Grid areas: line numbers vs grid-template-areas
- Direction-aware layouts: left/right vs logical properties
- Low-specificity resets: tricks vs :where()
- Dark mode colors: duplicate values vs light-dark()
- Dark mode defaults: manual styles vs color-scheme
- Variable fonts: multiple files vs one variable font
- Font loading: FOIT vs font-display: swap
- Balanced headlines: manual breaks vs text-wrap: balance
- Scroll snapping: JS carousel vs scroll-snap
- Page transitions: JS framework vs View Transitions API
- Entry animations: JS timing vs @starting-style
- Display none animation: JS workarounds vs transition-behavior: allow-discrete
- Independent transforms: shorthand vs separate properties
- Typed custom properties: untyped vs @property
- Scoped styles: BEM naming vs @scope
- Tooltip positioning: Popper.js vs CSS anchor positioning
- Dropdown menus: JS toggles vs popover API
- Flipping tooltips: JS overflow checks and flip logic vs position-try-fallbacks
- Dropdown width: measuring the button in JS vs anchor-size()
…
Related sites
Other listed sites in Developer tools. See the whole category →
| Domain | Title | Category | Country | Authority | llms.txt | llms-full.txt | Save |
|---|---|---|---|---|---|---|---|
| 0state.com | 0state | documentation Open source projects AI agents and MCP +1 | 61 | ✓ | |||
| docker.com | Docker Documentation | documentation DevOps and observability Developer tools +1 | US | 75 | ✓ | ✓ | |
| atlassian.com | Atlassian | documentation Developer tools Productivity +1 | 74 | ✓ | ✓ | ||
| getbootstrap.com | Bootstrap | documentation Open source projects Developer tools | 74 | ✓ | ✓ | ||
| pages.dev | Cloudflare Pages | documentation Infrastructure Developer tools | 73 | ✓ | ✓ | ||
| chatgpt.com | Codex | documentation Developer tools AI and machine learning | 72 | ✓ | ✓ | ||
| gitee.com | Gitee | documentation Developer tools Productivity +1 | CN | 72 | ✓ | ✓ | |
| gitlab.com | GitLab | documentation Developer tools Infrastructure | 72 | ✓ |
Machine-readable: GET /v1/resolve?q=modern-css.com · GET /v1/domain/modern-css.com · this page as Accept: application/json or text/markdown · MCP lookup_domain
Automatically discovered from public files. Inclusion does not imply endorsement or publisher participation.
Own or manage this website?
If you own or manage modern-css.com, you can update its listing and review file health, discovery activity and score history.
Manage this listing — optional
What verification unlocks
See how your site is discovered—and control what agents see.
- Control what agents see
Edit your listing description, tags, public contact details and additional llms.txt paths. Publish your terms for automated access, attribution and pricing.
- Make your profile eligible for search
A valid, listed, unblocked, verified profile can appear in our publisher sitemap and become eligible for search-engine visibility. Search engines decide what to index and rank.
- Appear in our llms-full.txt
Eligible verified publishers are listed by name, with their file links and summaries, in the service overview agents can read.
Free. No account registration, backlink or payment required. Public discovery remains available without verification.
Let your coding agent verify it
If your coding agent is authorized to manage this website, paste these instructions into it.
Claim my listing on Agent Web Map for modern-css.com:
1. POST https://agentwebmap.com/v1/sites/modern-css.com/claims and keep claim_id and claim_secret private.
2. Publish the proof: add the line "AgentWebMap ownership: <token>" (token from step 1) to https://modern-css.com/llms.txt, or use the DNS, meta-tag or well-known method the response describes.
3. POST https://agentwebmap.com/v1/sites/modern-css.com/verify with {"claim_id": "...", "claim_secret": "..."}.
4. Save the api_key from the answer; it manages the listing (PATCH https://agentwebmap.com/v1/sites/modern-css.com).
MCP equivalent: tools begin_ownership_claim, then verify_domain, at https://agentwebmap.com/mcp. Docs: https://agentwebmap.com/docs#verifyCorrections or removal requests: contact the directory.