Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>About Media 2</title>
- <style>
- body {
- margin: 0;
- }
- .top_menu {
- position: fixed;
- width: 100%;
- padding: 5px;
- background-color: green;
- display: flex;
- align-items: center;
- }
- .avatar {
- width: 50px;
- border-radius: 50%;
- float: left;
- }
- a {
- color: snow;
- margin: 0 20px;
- }
- .items {
- position: absolute;
- right: 0;
- margin: 0 20px;
- }
- @media all and (max-width: 425px) and (orientation: portrait) {
- .items {
- width: 100px;
- }
- .top_menu {
- padding: 80px 20px;
- }
- a {
- display: block;
- margin: 10px;
- }
- .avatar {
- position: absolute;
- top: 10px;
- left: 10px;
- }
- }
- </style>
- </head>
- <body>
- <div class='top_menu'>
- <img class='avatar' src='https://1xpto.netlify.app/pics/avatar.png'>
- <div class='items'>
- <a href='#'>Contact</a>
- <a href='#'>Projects</a>
- <a href='#'>Skills</a>
- <a href='#'>About</a>
- <a href='#'>Home</a>
- </div>
- </div>
- <script></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement