Need a sticky header in your website! Sure, here's an example of how you can create a sticky header for a website using CSS: 1. First start with creating header. Sticky Header Example Home About Services Contact 2. Now we create CSS, as you can see in above code we use <link rel="stylesheet" href="styles.css"> In your styles.css file add below css. body { margin: 0; font-family: Arial, sans-serif; } .sticky-header { position: sticky; top: 0; background-color: #333; padding: 10px 0; z-index: 1000; } .sticky-header nav ul { list-style: none; display: flex; justify-content: center; padding: 0; margin: 0; } .sticky-header nav li { margin: 0 15px; } .sticky-header nav a { text-decoration: none; color: white; font-weight: bold; transition: color 0.3s ease; } .sticky-header nav a:hover { color: #f39c12; } That's it. Now ...