xtodo css
grid-auto-rowsgrid-auto-columnsgrid-auto-flow
grid-auto-rows is a CSS property that specifies the size of implicitly-created grid row tracks. It applies to rows that are not explicitly sized by grid-template-rows or grid-template-areas, such as those generated by the auto-placement algorithm when there are more items than defined rows, or when items are positioned outside the explicit grid.
Key values include:
- auto: The default; row size is determined by the largest item in the row.
- min-content: Row size depends on the smallest item in the row.
- max-content: Row size depends on the largest item in the row.
- : A fixed size (e.g., 100px).
- : Relative to the grid container's block size.
- fr: Fractional units of available space.
- minmax(min, max): Defines a size range.
when you make anchor tag inline-block, how to align it like before?
a { display: inline-block; text-decoration: none; font-size: 1.2rem; line-height: 1; vertical-align: top; margin: 0; padding: 2px 0 2px 0; }
.x { font-style: italic; }
- in css gradient, interpolation can be specify in oklab or in hsl etc. give example, for all gradients
- also, show
shorterandlonger
- ask ai css 3d
scale3dperspectivepreserve-3dtransform-style
clip-path
- make Truchet tiles animation using css
- Truchet tiles
- ask ai to show a flip card animation
- add one example of background (shorthand)
- add one full wallpaper example, using background (shorthand). maybe
- CSS: background (shorthand)
- in css, can u do translate but keep the original copy
- https://x.com/i/grok/share/17d6bb82a7ba4a03b65d7ad544d261bd
- explain css translate
- https://x.com/i/grok/share/1c664e8f7a6749fb99a7293d48885739
Borders & Accents
Apply tobackgroundwithmaskorborder-imagefor creative frames.
- lol. was gonna write a requestAnimationFrame to know what it does.
- then, found that i already damned it 7 years ago.
- JavaScript requestAnimationFrame sucks
- Xah JS Blog 2019-01
(hover: hover)→ The user can hover (mouse, trackpad, stylus, etc.)(hover: none)→ The user cannot hover properly (most touch phones and tablets)
/* Best practice - safe hover */ @media (hover: hover) { .menu-item:hover { color: red; } } /* Touch devices get different style */ @media (hover: none) { .menu-item { padding: 15px; /* bigger touch targets */ } }
- how to do click to expand section visible by css no JavaScript
- sample page
- https://css-tricks.com/snippets/css/a-guide-to-flexbox/
- add css
min-content - https://developer.mozilla.org/en-US/docs/Web/CSS/min-content
- 2022-06-25
- css
- Navigational Panel Design (2022)
- 2022-05-08 css. write a tutorial on
@font-face.
- 2022-01-31 css need to write up on smaller and larger. redo page CSS: font-size
- small-caps
backdrop-filter: blur(16px);
- font-style
- font-variant
- font-weight
- font-stretch
- line-height
- mod CSS: font (shorthand)
word-break: keep-all;- css
aspect-ratioproperty
- whats
@supports @container@starting-style:scope- what's css
svhlvhdvh. add to my tutorial CSS: Length Units
clamp
ai generated
top ten most important css features since 2015.
- CSS: Grid Layout → revolutionized two-dimensional layouts.
- CSS: Flexbox Layout
- CSS: Variable (Custom Property)
- Container Queries – lets components respond to their own size, not just the viewport.
- CSS: :has descendant selector
- CSS: nesting syntax
- Scroll Snap – smooth, controlled scrolling for carousels and pages.
- Aspect Ratio – the
aspect-ratioproperty for maintaining proportions. - Modern Color Functions – like
oklch(),lch(), andlab()for better color control. - CSS: cascade @layer
- Logical Properties (widely adopted post-2018)
- margin-inline, padding-block, inset, float: inline-start, etc. Makes internationalization (RTL languages) much easier — no more manual flipping of left/right.
- Scroll-Driven Animations + View Transitions (2023–2024)
- animation-timeline: scroll()
- @view-transition
- Scroll snap improvements
- CSS can now handle complex scroll-linked and page transition animations that previously required heavy JavaScript.
- add unit, maybe
Qs,mshz,khzdpi,dpcm,dppx