Header Layout
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 - 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);
Developer | Alex Bergin |
Username | abergin |
Uploaded | June 13, 2022 |
Rating | 4.5 |
Size | 3,123 Kb |
Views | 40,480 |
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!
Name | Size |
Baymax | 6,250 Kb |
A Pen by Alex Bergin | 3,347 Kb |
Show Nav On Scroll | 4,898 Kb |
Motion blur loader | 2,505 Kb |
Background animation | 5,314 Kb |
Spinning Liquid In Box Loader Doodle | 2,992 Kb |
Fancy Text Inputs | 3,934 Kb |
P - Polaroid | 3,532 Kb |
Ghost | 5,310 Kb |
Glitch Camera | 42,627 Kb |
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!
Name | Username | Size |
Wikipedia Viewer | Codinger | 4,681 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Loader | MikitaLisavets | 3,321 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
Cant get enough icecream in pure css3 | Melawire | 4,322 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
HTM5 picture dropzone | Jaysalvat | 2,576 Kb |
Material design buttons | Fischaela | 4,381 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!