Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Untitled"
Bootstrap 4.1.1 Snippet by
divyalahad
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
553
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="wrapper"> <header class="page-header"> <nav> <h2 class="logo">LOGO</h2> <ul> <li> <a href="">Work</a> </li> <li> <a href="">Services</a> </li> <li> <a href="">Team</a> </li> <li> <a href="">Careers</a> </li> </ul> <button class="cta-contact">Get in touch</button> </nav> </header> <main class="page-main"> <div> <h1>We are here to help you</h1> <p>One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin.</p> <p>It wasn't a dream. His room, a proper human.</p> </div> </main> <footer class="page-footer"> <small>© Copyright 2018. All rights reserved.</small> <ul> <li> <a href="" target="_blank"> <i class="icon ion-logo-facebook"></i> </a> </li> <li> <a href="" target="_blank"> <i class="icon ion-logo-twitter"></i> </a> </li> <li> <a href="" target="_blank"> <i class="icon ion-logo-linkedin"></i> </a> </li> <li> <a href="" target="_blank"> <i class="icon ion-logo-github"></i> </a> </li> </ul> </footer> </div>
@import url("https://fonts.googleapis.com/css?family=Dosis:400,700"); :root { --main-white-color: #f2f2f2; --main-black-color: black; --main-purple-color: #9e89b8; } * { padding: 0; margin: 0; box-sizing: border-box; } button { background: none; outline: none; cursor: pointer; } ul { list-style: none; } a { text-decoration: none; color: inherit; } body { font: 16px/1.5 "Dosis", sans-serif; /*IE FIX*/ /*display: flex; flex-direction: column;*/ } /* CONTAINER –––––––––––––––––––––––––––––––––––––––––––––––––– */ .wrapper { display: flex; flex-direction: column; height: 100vh; } .wrapper > * { padding: 20px; } /* HEADER –––––––––––––––––––––––––––––––––––––––––––––––––– */ .page-header { background: var(--main-white-color); } .page-header nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .page-header ul { display: flex; order: 1; width: 100%; margin-top: 15px; } .page-header ul li:not(:last-child) { padding-right: 15px; } .page-header .cta-contact { font-family: inherit; font-size: 1.2rem; padding: 5px 18px; border: 1px solid; border-radius: 5px; } /* MAIN –––––––––––––––––––––––––––––––––––––––––––––––––– */ .page-main { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; min-height: 350px; background: var(--main-purple-color) url(https://whc.unesco.org/uploads/thumbs/site_0252_0090-500-334-20150602104800.jpg) no-repeat center / cover; background-blend-mode: luminosity; color: var(--main-white-color); } .page-main div { max-width: 500px; } .page-main h1 { margin-bottom: 20px; } .page-main p + p { margin-top: 10px; } /* FOOTER –––––––––––––––––––––––––––––––––––––––––––––––––– */ .page-footer { display: flex; flex-direction: column-reverse; background: var(--main-white-color); } .page-footer ul { display: flex; font-size: 1.5rem; margin-bottom: 5px; } .page-footer ul li:not(:last-child) { margin-right: 20px; } /* MQ –––––––––––––––––––––––––––––––––––––––––––––––––– */ @media screen and (min-width: 550px) { .page-header ul { width: auto; margin-top: 0; } .page-header .cta-contact { order: 1; } .page-footer { flex-direction: row; justify-content: space-between; align-items: center; } .page-footer ul { margin-bottom: 0; } } @media screen and (min-width: 768px) { body { font-size: 18px; } .page-main { padding-left: 90px; } }
Related:
See More
Free Template
Get Shit Done Kit
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76