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