sticky header in css code example Example: html how to ensure that the header always on top #header { position: fixed; } #content { margin-top: 100px; }