Header Layout

Developer
Size
3,123 Kb
Views
40,480

How do I make an header layout?

Using pseudo elements to create a broken line with subtext content above a main headline in a box with a border.. What is a header layout? How do you make a header layout? This script and codes were developed by Alex Bergin on 13 June 2022, Monday.

Header Layout Previews

Header Layout - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Header Layout</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'>
<link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Vollkorn:400italic'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="neato-header"> <h2>Your Subtitle</h2> <h1>Your Headline</h1>
</div> <script src="js/index.js"></script>
</body>
</html>

Header Layout - Script Codes CSS Codes

html, body { overflow: hidden; position: absolute; height: 100%; width: 100%; left: 0; top: 0;
}
html { background-image: url(https://unsplash.imgix.net/photo-1423683249427-8ca22bd873e0?fit=crop&fm=jpg&h=700&q=75&w=1050); background-position: center center; background-size: cover;
}
body { background-color: rgba(0, 0, 0, 0.1);
}
.neato-header { -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); color: white; min-width: 50%; padding: 30px; text-align: center; position: absolute; left: 50%; top: 50%; border: 3px solid white; border-top: none;
}
.neato-header h1, .neato-header h2 { letter-spacing: 0.05em;
}
.neato-header h1 { font-size: 65px; font-family: "Open Sans Condensed"; text-transform: uppercase;
}
.neato-header h2 { -webkit-transform: translate(0, -50%); transform: translate(0, -50%); font-family: "Vollkorn"; font-weight: italic; font-size: 21px; overflow: hidden; margin: -30px -33px 0 -33px; position: absolute; width: calc( 100% + 6px );
}
.neato-header h2:before, .neato-header h2:after { content: ""; position: absolute; width: 100%; margin-top: -2px; border-top: 3px solid white; top: 50%;
}
.neato-header h2:before { -webkit-transform: translate(-100%, 0); transform: translate(-100%, 0); margin-left: -30px;
}
.neato-header h2:after { margin-left: 30px;
}

Header Layout - Script Codes JS Codes

(function() {
}).call(this);
Header Layout - Script Codes
Header Layout - Script Codes
Home Page Home
Developer Alex Bergin
Username abergin
Uploaded June 13, 2022
Rating 4.5
Size 3,123 Kb
Views 40,480
Do you need developer help for Header Layout?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Alex Bergin (abergin) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!