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 :: media-queries 
Css :: flexbox properties css 
Css :: vertical and horizontal align center div 
Css :: css curved border 
Css :: text stroke css 
Css :: css color black 
Css :: box style 
Css :: style scrollbar 
Css :: css overflow-y 
Css :: rotate box-shadow 
Css :: css hide element 
Css :: Shadow On left & right side 
Css :: css word break 
Css :: css set strong to normal text 
Css :: css change image width 
Css :: attribute selectors css 
Css :: bootstrap put button on one line 
Css :: how to add dotted line after and before text in css 
Css :: <link 
Css :: font size x large in css 
Css :: does boxshadow work 
Css :: alert without page refresh 
Css :: min css 
Css :: round corners of image css 
Css :: add color on image using css 
Css :: .col-12 bootstrap 
Css :: css change multiple classes 
Css :: image cover css 
Css :: Fixed Button With 100% 
Css :: css line-through color 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =