sticky heading | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

sticky heading

how can we create a heading which sticks on top rules- 1 heading and 2 heading is there. 1 heading is in top and second is below the 1st one. if we scroll the screen 1st heading goes along with the page but second heading sticks to the bottom what is the code for it? the answer in css or javascript

31st Oct 2016, 4:59 PM
Alen Paul Varghese
2 Respostas
3rd May 2020, 6:08 AM
CalviÕ²
CalviÕ² - avatar
0
make the position of both the headings as fixed i.e. position : fixed; in your external or internal CSS.
31st Oct 2016, 5:55 PM
sahil gupta
sahil gupta - avatar