Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>My Website</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style type="text/css">
- @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap");
- :root {
- --main-color: #00b6b9;
- --alt-color: #394284;
- --main-font: "poppins", "open sans", "HelveticaNeue", "Helvetica Neue", "Helvetica-Neue", Helvetica, Arial, sans-serif;
- }
- * {
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- font-family: var(--main-font);
- line-height: 1.5em;
- }
- *::selection {
- background: var(--main-color);
- color: white;
- }
- body {
- background: #f7f7f7;
- color: #333;
- padding: 0;
- margin: 0;
- }
- a {
- text-decoration: none;
- color: var(--alt-color);
- }
- a:hover {
- color: var(--main-color);
- text-decoration: underline;
- }
- strong,
- b {
- color: var(--main-color);
- }
- #page,
- .footer {
- width: 1310px;
- max-width: 96%;
- margin: 0 auto;
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
- position: relative;
- }
- #page {
- background: white;
- display: block;
- min-height: 95vh;
- z-index: 1;
- }
- .footer {
- background: #222;
- color: white;
- padding: 15px 30px;
- z-index: 0;
- min-height: 5vh;
- }
- .footer p {
- margin: 0;
- }
- .content {
- border-bottom: 1px solid #ddd;
- background: white;
- float: left;
- width: 100%;
- clear: both;
- }
- .main,
- aside {
- padding: 15px 30px;
- }
- .header {
- overflow: hidden;
- background: white;
- border-bottom: 1px solid #ddd;
- top: 0;
- float: left;
- width: 100%;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
- }
- .header * {
- line-height: inherit;
- }
- .header h1 {
- margin: 0;
- float: left;
- color: var(--alt-color);
- }
- .header nav {
- float: right;
- }
- .header nav ul {
- list-style: none;
- margin: 0;
- padding: 0;
- font-size: 0;
- }
- .header nav li {
- display: inline-block;
- }
- .header nav a {
- display: block;
- padding: 0 10px;
- text-decoration: none;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- font-size: 14px;
- font-weight: bold;
- }
- .header nav a:hover {
- color: var(--main-color);
- background: #f7f7f7;
- }
- aside ul {
- list-style: disclosure-closed;
- margin: 10px 0;
- padding-left: 1em;
- }
- aside h3 {
- margin: 0;
- border-bottom: 1px solid;
- }
- @media only screen and (min-width: 767px) {
- .main {
- width: 76%;
- float: left;
- }
- aside {
- width: 24%;
- float: left;
- border-left: 1px solid #ddd;
- }
- .header {
- display: block;
- position: sticky;
- height: 70px;
- line-height: 70px;
- padding: 0 30px;
- }
- }
- @media only screen and (max-width: 767px) {
- .header nav {
- float: left;
- width: 100%;
- padding: 0 20px;
- }
- .header nav li {
- display: block;
- height: 100%;
- float: left;
- }
- .header h1 {
- padding: 15px 30px;
- float: none;
- width: 100%;
- border-bottom: 1px solid #ddd;
- }
- }
- </style>
- </head>
- <body>
- <div id="page">
- <div class="header">
- <h1>Site Header</h1>
- <nav>
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">About</a></li>
- <li><a href="#">Contact</a></li>
- </ul>
- </nav>
- </div>
- <div class="content">
- <div class="main">
- <h3>Main Content</h3>
- <p>This is the <strong>main content</strong>.</p>
- </div>
- <aside>
- <h3>Sidebar</h3>
- <ul>
- <li><a href="https://www.example.com/" target="_blank">Link 1</a></li>
- <li><a href="https://www.example.com/" target="_blank">Link 2</a></li>
- <li><a href="https://www.example.com/" target="_blank">Link 3</a></li>
- <li><a href="https://www.example.com/" target="_blank">Link 4</a></li>
- </ul>
- </aside>
- </div>
- </div>
- <div class="footer">
- <p>This is the Footer.</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement