<!-- HTML -->
<header>
<nav>
<ul>
<li><a href="Menu.html" style="padding: 0 20px 0 20px;">Menu</a></li>
<li><a href="Burritos.html" style="padding: 0 20px 0 20px;">Burritos</a></li>
<li><a href="index.html"><img class="header-image" src="assets/Headerlogo1.png"></a></li>
<li><a href="Contact.html" style="padding: 0 20px 0 20px;">Contact Us</a></li>
<li><a href="About.html" style="padding: 0 20px 0 20px;">About Us</a></li>
</ul>
</nav>
<div id="wrapper"></div>
</header>
<!-- CSS -->
<style>
header {
background-image: url(img/your-img.jpg);
background-size: cover;
background-position: center;
height: 100vh; /* or whatever you wish */
background-attachment: fixed;
position: relative;
}
.wrapper {
position: absolute;
width: 1140px; /* or how much do you want */
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
</style>
Code Example |
---|
Html :: large text class |
Html :: html new line |
Html :: vs code html formatter |
Html :: tags |
Html :: link that scrolls down the page |
Html :: text box |
Html :: Using new line( ) in string and rendering the same in HTML |
Html :: how to horizontal line in html |
Html :: how to create bold text in html |
Html :: html to exe |
Html :: html mark tag |
Html :: iframe syntax |
Html :: html lorem ipsum |
Html :: drag and drop angular |
Html :: how to link another page in form submit |
Html :: androif intent in html link |
Html :: html make card |
Html :: download html page |
Html :: Remove html from string in sql |
Html :: bootstrap navabar |
Html :: ramda cdn |
Html :: restrict file upload type angular |
Html :: html checkboxfor is not visible |
Html :: html bulleted list |
Html :: html to png node |
Html :: shopify liquid for loop |
Html :: html frame |
Html :: run script after html load |
Html :: what is div in html |
Html :: random paragraph in html |