NiftyCent.com
NiftyCent.com
NiftyCent
US
|
Search
Members

Web tool list
CSS - scroll-margin-top
12mo Aug 14, 2020, 7:07:12 PM
CSS - scroll-margin-top
/ng/web-tool-list

V pripade, ze stranka pouziva nejaku fixed header a pri presuvani sa na anchor element, je dany element prekryty danym fixed elementom, tak je mozne pouzit:


.scrolled {scroll-margin-top: 6em;}


dany anchor sa odskroluje zhora


viac info na:


https://www.blindemanwebsites.com/today-i-learned/2020/scroll-margin-top/