Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to make header always on top in html

#header {
	position: sticky; /*(recomended)*/
    top: 0px;
    position: fixed; 
}
Comment

how to make the header stay on the top of the page in html

header {
  position: sticky;
  top: 0;
}
Comment

html how to ensure that the header always on top

#header {
  position: fixed;
}

#content {
  margin-top: 100px;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css input selector 
Css :: css text truncate 2 lines 
Css :: how to snap the scroll is css 
Css :: hover apply lighter color css 
Css :: resize checkbox 
Css :: css top right corner 
Css :: website make text not highlightable 
Css :: css keep image ratio 
Css :: cursor disabled 
Css :: css horizontal center 
Css :: css center in grid 
Css :: blocksatz css 
Css :: schatten css 
Css :: page icon css 
Css :: how to enlarge image when hover on in css 
Css :: icon inside a circle css 
Css :: centred div 
Css :: invert png color css 
Css :: css animate background image 
Css :: centering css elements 
Css :: what is the username password for ftp lampp 
Css :: default cursor css 
Css :: second child css 
Css :: decrease space between paragraphs html 
Css :: how to position something on the same line css 
Css :: how to align items in css 
Css :: center div inside div vertically and horizontally 
Css :: left and right box shadow only 
Css :: image resize css 
Css :: remove border radius select css 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =