How to create header with html and css

Collection of free HTML/CSS header and footer code examples: sticky, fixed, etc. Update of April 2019 collection. 5 new items.

Show
  1. Article Headers
  2. Fullscreen Headers
  3. Fixed (Sticky) Headers
  4. Video Headers
  5. Footers
  1. Bootstrap Headers
  2. Bootstrap Footers
  3. CSS Hero Effects

Article Headers

How to create header with html and css

Made with

  • HTML (Pug) / CSS (SCSS)

About the code

Non Rectangular Headers

Non-Rectangular header with inline SVG.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Omar Dsoky
  • January 18, 2018

About the code

Curve Header

Pure CSS curve header.

How to create header with html and css

Author

  • Web Made Well
  • January 8, 2018

Made with

  • HTML
  • CSS
  • JavaScript (jQuery.js)

About the code

Header Image Parallax Scrolling Effect with CSS

Create a parallax scrolling effect using CSS background-image position. This script works when the header image is positioned at the top of the page.

How to create header with html and css

Author

  • George W. Park
  • January 6, 2018

About the code

Fixed Angled Header

This pen shows how CSS pseudo-elements and transforms can be used to create a fixed, angled header with an image background.

How to create header with html and css

Author

  • Arthur Camara
  • September 20, 2017

Made with

  • HTML/Pug
  • CSS/Stylus

About the code

Skewed Header

Skewed header with HTML and CSS.

How to create header with html and css

Author

  • Arman
  • July 16, 2017

Made with

  • HTML
  • CSS/SCSS
  • JavaScript

About the code

Curve SVG Background Animation

Curve SVG background animation for header.

How to create header with html and css
Demo Image: CSS Animated Header

CSS Animated Header

Animated blog header background image, no JavaScript.
Made by Nodws
May 30, 2017

How to create header with html and css
Demo Image: Slanted Div, Fixed Header

Slanted Div, Fixed Header

Skewed divs and parallax effect created by fixed header. Simple layout and instructions for modification in the JS!
Made by Andrew Bales
January 10, 2017

How to create header with html and css
Demo Image: CSS Header

CSS Header

HTML and CSS fixed disappearing scrolling header.
Made by Dudley Storey
December 3, 2016

How to create header with html and css
Demo Image: Multi-Layered Parallax Illustration

Multi-Layered Parallax Illustration

HTML, CSS and JavaScript multi-layered parallax illustration.
Made by Patryk Zabielski
April 27, 2016

How to create header with html and css
Demo Image: Hero Idea

Hero Idea

Hero idea in HTML, CSS and JavaScript.
Made by Jake Lundberg
April 6, 2016

How to create header with html and css
Demo Image: Headings/Hero Image Typography Playground

Headings/Hero Image Typography Playground

Explanation is at the top of CSS file. Just some typefaces, helper classes and few presets for easily testing headings typography.
Made by Mirko Zorić
March 18, 2016

How to create header with html and css
Demo Image: Hero Zoom On Scroll

Hero Zoom On Scroll

Simple zoom effect using window scroll to adjust some CSS.
Made by Derek Palladino
October 8, 2015

How to create header with html and css
Demo Image: Neat Parallax Hero Effect

Neat Parallax Hero Effect

Some JavaScript magic to make this nifty little parallax hero.
Made by Dominic Magnifico
September 22, 2015

How to create header with html and css
Demo Image: Fixed Post Header

Fixed Post Header

Fixed header for each post with HTML, CSS and JavaScript.
Made by White Wolf Wizard
August 5, 2015

How to create header with html and css
Demo Image: CSS Parallax Header Image

CSS Parallax Header Image

HTML and CSS parallax header image.
Made by Bennett Feely
November 18, 2014

Author

  • Olivia Ng
  • February 25, 2019

Made with

  • HTML (Pug) / CSS (SCSS)

About the code

Hover Effect for Headers

8 hover effects for header in HTML and CSS.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Jorge Reyes
  • February 12, 2019

Made with

  • HTML / CSS (SCSS)

About the code

Header / About Page

A simple header.

Compatible browsers: Chrome, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Gerardo Valencia
  • February 27, 2018

About the code

Header for Landing Page

Header for landing page using clip-path.

How to create header with html and css

Author

  • Jeffrey Bennett
  • September 4, 2017

About the code

Sexy Animated Rainbow Waves Header

Just a little front-end UI experiment.

How to create header with html and css
Demo Image: Hero Image Showcase

Hero Image Showcase

Hero image showcase with HTML, CSS and JS.
Made by Art
May 27, 2017

How to create header with html and css
Demo Image: Hero Effect–Magazine

Hero Effect–Magazine

A hero image that uses height: 100vh to cover the entire screen for a magazine cover effect. When scrolled, it has a subtle animation similar to opening a magazine.
Made by Cameron Campbell
November 15, 2016

How to create header with html and css
Demo Image: Flexbox Hero Header

Flexbox Hero Header

Simple parallax hero header with flexbox.
Made by Ana Vicente
April 5, 2016

How to create header with html and css
Demo Image: Simple Parallax Header

Simple Parallax Header

HTML, CSS and JS simple parallax header with blur.
Made by tsimenis
April 5, 2016

How to create header with html and css
Demo Image: Hero OnScroll

Hero OnScroll

HTML, CSS and JS hero on scroll.
Made by verdzik
November 9, 2015

How to create header with html and css
Demo Image: Fullscreen Header With Background Color Cycle

Fullscreen Header With Background Color Cycle

Fullscreen header with background color cycle in pure CSS.
Made by Kenny Sing
November 17, 2014

How to create header with html and css
Demo Image: Continuous Scrolling Background Of Sticky Header

Continuous Scrolling Background Of Sticky Header

Continuous scrolling background of sticky header in HTML, CSS and JavaScript.
Made by Robert Borghesi
September 17, 2014

Author

  • Luciano Felix
  • July 1, 2020

Made with

  • HTML (Pug) / CSS (Sass)

About a code

Blurry Header

Progressive backdrop blur experiment.

Compatible browsers: Chrome, Edge, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Taco 🌮 (タコス)
  • January 27, 2020

About a code

Just A Simple Header Bar

Just a really simple pure CSS header bar.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Joshua Ward
  • February 9, 2019

Made with

  • HTML (Pug) / CSS (SCSS) / JavaScript

About the code

Sticky Headers

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Marco Biedermann
  • July 1, 2017

Made with

  • HTML
  • CSS/PostCSS
  • JavaScript/Babel

About the code

Sticky Header On Scroll

High performance sticky header with shadow on scroll.

How to create header with html and css
Demo Image: Responsive Scrolling Sticky Header

Responsive Scrolling Sticky Header

Using element queries to power a layout with a cover image and a nav that sticks to the top of the page on scroll.
Made by Tommy Hodgins
April 9, 2017

How to create header with html and css
Demo Image: Scroll Header

Scroll Header

Really smooth on mobile/touch enabled devices.
Made by Blake Bowen
February 11, 2017

How to create header with html and css
Demo Image: Responsive Scroll Header

Responsive Scroll Header

Responsive scroll header in HTML, CSS and JavaScript.
Made by Dylan Macnab
December 28, 2015

How to create header with html and css
Demo Image: Animate Header In/Out After Scrolling

Animate Header In/Out After Scrolling

Using jquery-waypoints, well be checking to see when data-animate-header (this section) is above the top of screen, then animate data-animate-header (the fixed header) in/out accordingly. We're able to do this with css transitions and a combo of 3 classes (.header-past, .header-show, .header-hide) - without having to clone or do any dom manipulating.
Made by antwon
June 16, 2015

How to create header with html and css
Demo Image: Header Fade

Header Fade

HTML, CSS and JavaScript header fade.
Made by Emmanuel Pilande
March 7, 2015

How to create header with html and css
Demo Image: Fixed Header Scroll Effect And Smart Nav For One-Page Sites

Fixed Header Scroll Effect And Smart Nav For One-Page Sites

Rudimentary combination of jQuery fixed header on scroll and nav active section class effect.
Made by Summer
February 2, 2015

How to create header with html and css
Demo Image: Auto Hide Sticky Header

Auto Hide Sticky Header

Setting classes on the header with JavaScript.
Made by jasper
January 21, 2015

How to create header with html and css
Demo Image: Sticky Header CSS Transition

Sticky Header CSS Transition

Fun example of a sticky header utilizing some CSS3 transitions!
Made by Brady Sammons
October 23, 2014

How to create header with html and css
Demo Image: Top Sliding Nav

Top Sliding Nav

Hidden nav that slides in from the top once the page is scrolled.
Made by Chris Gruber
October 20, 2014

How to create header with html and css
Demo Image: Responsive Sticky Header Navigation

Responsive Sticky Header Navigation

Cool navigation with HTML, CSS and JS.
Made by MarcLibunao
June 8, 2014

How to create header with html and css
Demo Image: Fixed Header (Quick Hack)

Fixed Header (Quick Hack)

The header is not fixed with a solid background color and there is a fixed div at the top that is small. Then there is a div that is not fixed within the header with the title. Simply wanted to try and prototype the idea. Works in a decent hack-ish sort of way.
Made by Darcy Voutt
March 21, 2014

How to create header with html and css
Demo Image: Sticky Header Visual Trick

Sticky Header Visual Trick

Creates a sticky hacky sticker header using CSS without creating a scroll event handler.
Made by Michael
July 19, 2013

How to create header with html and css
Demo Image: React Video Header

React Video Header

Simple React.js video header.
Made by Mark Sarpong
June 2, 2017

How to create header with html and css
Demo Image: Video Header

Video Header

Video header with HTML, CSS and JavaScript.
Made by Alex
February 6, 2017

How to create header with html and css
Demo Image: Hero Video

Hero Video

A pen that shows how to create a hero with a background video.
Made by Chris Simeone
October 20, 2016

How to create header with html and css
Demo Image: Fullscreen Background Video With Mix-Blend-Mode Overlay Text

Fullscreen Background Video With Mix-Blend-Mode Overlay Text

Shows full-screen video with effective, legible text overlay using mix-blend-mode.
Made by Dudley Storey
September 8, 2016

How to create header with html and css
Demo Image: Video Header Animation

Video Header Animation

Animation was customized used Adobe After Effects and rendered to be compatible across all browsers with .ogv and .webm files. Does not operate in mobile (intentionally). Bootstrap framework for HTML is used, no JavaScript needed.
Made by Sylvia Maguia
October 4, 2015

How to create header with html and css
Demo Image: Responsive Video Header

Responsive Video Header

Responsive video header with gradient in HTML and CSS.
Made by Jacob Davidson
May 29, 2015

Author

  • Swarup Kumar Kuila
  • April 2, 2020

About a code

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: bootstrap.css, font-awesome.css

Author

  • Zed Dash
  • December 28, 2019

Made with

  • HTML (Pug) / CSS (SCSS)

About a code

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Ananya Neogi
  • August 13, 2019

About a code

When a web page doesn't have enough content to fit the screen, the footer doesn't stay at the bottom so it ends up looking weird. Solution: Do the layout using flex columns. In addtion to that either, add flex-grow: 1 to the content area, here it is the section. Or add margin-top: auto to the element you you wish for it to always stay at the bottom, here it is footer.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Sheelah Brennan
  • February 8, 2019

Made with

  • HTML (Pug) / CSS (SCSS) / JavaScript (Babel)

About the code

Expand/collapse footer with animations.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: font-awesome.css

Author

  • Jules Forrest
  • January 3, 2019

About the code

Evenly space links with CSS Grid. No margin or padding needed!

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

How to create header with html and css

Author

  • Ryan Mulligan
  • February 24, 2018

Made with

  • HTML (Pug) / CSS (SCSS)

About the code

A simple example of using flexbox to create a sticky footer page layout.

How to create header with html and css
Demo Image: Parallax Footer

Website fixed footer with HTML, CSS and JavaScript.
Made by Austin Paquette
January 7, 2017

How to create header with html and css
Demo Image: Footer With Content Scale

HTML, CSS and JavaScript footer with content scale.
Made by Mātthīas
December 3, 2016

How to create header with html and css
Demo Image: Social Media Footer

Just a hover effect for the social media links in the footer of a page.
Made by Andrew Canham
September 22, 2016

How to create header with html and css

Author

  • Pete Lloyd
  • January 20, 2016

Made with

  • HTML
  • CSS/SCSS
  • JavaScript (jQuery.js)

About the code

Animated mobile footer menu to display 2-3 main actions a user can take on a mobile device. Shows up at 767px (for bootstrap users).

How to create header with html and css
Demo Image: Simple Fixed Footer

HTML and CSS simple fixed footer.
Made by Mātthīas
August 25, 2015

How to create header with html and css
Demo Image: Simple Slide-Out Footer

HTML and CSS simple slide-out footer.
Made by Riley Shaw
August 24, 2014

How to create header with html and css
Demo Image: HTML And CSS Fixed Footer

A quick example of a fixed footer.
Made by Mads Håkansson
May 4, 2014

How to create header with html and css
Demo Image: Pure CSS Classy Footer

Pure CSS transitioned footer. Keeps away from content, shows itself when it needs to be seen.
Made by Nick Braver
January 21, 2014

How to create header with html and css
Demo Image: Beautiful Aurora Footer Lights

Beautiful Aurora lights display for footer.
Made by Amit Ashok Kamble
October 28, 2013

How do you create a header in HTML?

HTML provides 6 tags to create headings i.e. h1, h2, h3, h4, h5 and h6. Use any of the heading tags <h1> to <h6> and every tag will give you the different size of the heading. The <h1>tag defines the most important heading and <h6> defines the least important heading.

How do I create a custom header in CSS?

Control the look and feel of the header and footer of your site with your CSS. To edit your CSS, click "Edit" at the right of the "Custom Header / Footer CSS" field under the "Appearance" tab of your Management Console.

How do you add headers and footers in HTML and CSS?

Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to use the Internal CSS for making a footer..
<! Doctype Html>.
<Html>.
<Head>.
<Title>.
Make a footer using Internal CSS and Html..
</Title>.
</Head>.
<Body>.