--- url: "https://www.w3.org/WAI/WCAG22/Techniques/css/C43" titulek: "C43: Using CSS scroll-padding to un-obscure content | WAI | W3C" h1: "Technique C43:Using CSS scroll-padding to un-obscure content" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:34:10" znaku: 4652 slov: 622 kodovani: "utf-8" sha256: "00efe5f6314dfcce25838b9d5abf8b1c0d1632c7b19ee26ea82ffe5d30d09cc4" --- # Technique C43:Using CSS `scroll-padding` to un-obscure content ## About this Technique This technique relates to: - [2.4.11 Focus Not Obscured (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum) ( **Sufficient** ) - [2.4.12 Focus Not Obscured (Enhanced)](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-enhanced) ( **Sufficient** ) This technique applies to all technologies that support CSS. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to ensure that user interface components (for example: links, buttons, and form fields) that are initially completely obscured by a fixed-position component can still be accessed by users. In this example, this is achieved using CSS `padding` and `scroll-padding` properties to create space underneath the site footer and allow the link in the footer to scroll into view when it is focused with a keyboard. ## Examples ### Example 1: Using CSS `scroll-padding` to un-obscure content This example shows a situation where there is a fixed-position banner at the bottom of the screen that is covering up the site footer, which contains a link. This type of fixed-position banner is a common design for cookie-consent banners. Working example: [Using CSS `scroll-padding` to un-obscure content](../../working-examples/css-padding-focus-not-obscured/). ```
Header Content