KKitForma.

Language

EnglishEnglishTürkçeTurkishTool unavailable · open catalogDeutschGermanTool unavailable · open catalogEspañolSpanishTool unavailable · open catalogFrançaisFrenchTool unavailable · open catalogPortuguêsPortugueseTool unavailable · open catalogItalianoItalianTool unavailable · open catalogNederlandsDutchTool unavailable · open catalogPolskiPolishTool unavailable · open catalogРусскийRussianTool unavailable · open catalogУкраїнськаUkrainianTool unavailable · open catalogSvenskaSwedishTool unavailable · open catalogNorskNorwegianTool unavailable · open catalogDanskDanishTool unavailable · open catalogSuomiFinnishTool unavailable · open catalogČeštinaCzechTool unavailable · open catalogRomânăRomanianTool unavailable · open catalogΕλληνικάGreekTool unavailable · open catalogالعربيةArabicTool unavailable · open catalogעבריתHebrewTool unavailable · open catalogفارسیPersianTool unavailable · open catalogاردوUrduTool unavailable · open catalogहिन्दीHindiTool unavailable · open catalogবাংলাBengaliTool unavailable · open catalogதமிழ்TamilTool unavailable · open catalogతెలుగుTeluguTool unavailable · open catalogमराठीMarathiTool unavailable · open catalogગુજરાતીGujaratiTool unavailable · open catalog简体中文Chinese SimplifiedTool unavailable · open catalog繁體中文Chinese TraditionalTool unavailable · open catalog日本語JapaneseTool unavailable · open catalog한국어KoreanTool unavailable · open catalogTiếng ViệtVietnameseTool unavailable · open catalogไทยThaiTool unavailable · open catalogBahasa IndonesiaIndonesianTool unavailable · open catalogBahasa MelayuMalayTool unavailable · open catalogFilipinoFilipinoTool unavailable · open catalogKiswahiliSwahiliTool unavailable · open catalogAfrikaansAfrikaansTool unavailable · open catalogMagyarHungarianTool unavailable · open catalogБългарскиBulgarianTool unavailable · open catalogHrvatskiCroatianTool unavailable · open catalogSrpskiSerbianTool unavailable · open catalogSlovenčinaSlovakTool unavailable · open catalogSlovenščinaSlovenianTool unavailable · open catalogLietuviųLithuanianTool unavailable · open catalogLatviešuLatvianTool unavailable · open catalogEestiEstonianTool unavailable · open catalogCatalàCatalanTool unavailable · open catalogEuskaraBasqueTool unavailable · open catalog
← All topics and search

HTML, CSS & accessibility

Layouts, forms, browser behavior and accessible interface troubleshooting.

112 troubleshooting guides · Page 3 / 5

  1. How do I keep a fixed mobile action bar clear of the bottom safe area?

    Add padding using env(safe-area-inset-bottom, 0px) in the layout that actually reaches the screen edge.

  2. Why does the first child’s top margin appear outside its parent?

    Vertical margins can collapse in normal block layout.

  3. Why do floated images extend outside a parent’s background?

    Floats can escape the parent’s normal height calculation.

  4. Why does a percentage gap produce unexpected overflow in a grid?

    Percentage gaps interact with the container’s sizing and can behave differently when its size is indefinite.

  5. Why do equal flex-grow values still produce unequal card widths?

    Growth distributes available space on top of each item’s basis; equal growth factors do not imply equal final widths.

  6. Why does keyboard focus move in a different order from my CSS layout?

    Flex or grid visual reordering does not necessarily change DOM and accessibility reading order.

  7. How do I display pasted multiline text without rendering it as HTML?

    Insert the text as textContent and use white-space:pre-wrap to preserve line breaks while allowing wrapping.

  8. Why does a long URL overflow a narrow card despite normal wrapping?

    Normal line breaking may not find a break opportunity inside the token.

  9. Why does text-overflow:ellipsis not show an ellipsis?

    For a common single-line case, the text box needs constrained width, overflow:hidden and white-space:nowrap alongside text-overflow:ellipsis.

  10. How do I clamp a card description without hiding its only action link?

    Clamp only the descriptive text region, keeping controls outside it.

  11. Why does object-fit:cover crop the subject of a product image?

    Cover fills the assigned box by cropping a mismatched aspect ratio.

  12. Why does aspect-ratio seem ignored when both dimensions are set?

    An aspect ratio influences automatic sizing; definite width and height can already determine the box.

  13. Why does my custom font load but only the regular weight appears?

    Check that each font-face declaration names the correct font family, file and weight/style range.

  14. How do I reduce font-loading shifts without hiding text for too long?

    Choose font-display according to the product’s loading policy, then use a fallback with similar metrics and consider metric overrides where supported.

  15. Why does enlarged text get clipped inside fixed-height buttons?

    A fixed height combined with rigid line-height may not accommodate zoom, localization or user font settings.

  16. How do I show keyboard focus without outlining every mouse click?

    Style :focus-visible with a clear indicator and retain a suitable fallback for the supported browser set.

  17. How do I honor reduced motion without breaking a loading state?

    Under prefers-reduced-motion:reduce, remove nonessential travel and parallax while retaining a clear static or minimally changing loading indicator.

  18. Why do custom checkbox indicators disappear in Windows forced-colors mode?

    Background colors and shadows may be replaced or suppressed in forced-colors mode.

  19. Why does an unlayered style override a more specific rule inside a CSS layer?

    For normal declarations, layer order is considered before selector specificity, and unlayered author rules outrank layered normal rules.

  20. How can reusable component CSS remain easy for consumers to override?

    Use low-specificity selectors, including :where where appropriate, and a documented cascade-layer strategy.

  21. Why does a CSS variable fallback not rescue an invalid color value?

    The var fallback is used when the custom property is missing or invalid in the variable-resolution sense, not whenever its substituted value is wrong for the consuming property.

  22. How do I stop an animated custom property from jumping between values?

    Unregistered custom properties generally animate discretely.

  23. Why does a container query never match despite a narrow card?

    Size queries need an eligible query container, typically an ancestor with container-type:inline-size.

  24. Why does adding containment change the size of a previously auto-sized widget?

    Containment can intentionally limit how descendants affect layout or sizing.

Ask your own question · Sign in to post questions and answers.