property
Scroll target group — CSS reference
Turns an existing container of links to scroll targets into a scroll-marker group; links may be styled using :target-current. Unlike generated scroll markers, these links retain ordinary link semantics and navigation. Keep visible labels and usable ordinary fragment links as fallback.
Formal Syntax & Structure
css syntaxcss
scroll-target-group: auto;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>scroll-target-group</title><style>body{margin:8px;font:16px/24px sans-serif}#a{scroll-target-group:auto}#sc{width:180px;height:80px;overflow:auto}#b,#c{height:80px}</style><body><nav id="a"><a href="#b">One</a> <a href="#c">Two</a></nav><div id="sc"><section id="b">One</section><section id="c">Two</section></div></body></html>