Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- * {box-sizing: border-box;}
- body {
- background-image: claret.jpg;
- margin: 0;
- font-family: Arial;
- }
- .header {
- overflow: hidden;
- background-color: red;
- padding: 20px 10px;
- }
- .header a {
- float: left;
- color: black;
- text-align: center;
- padding: 12px;
- text-decoration: none;
- font-size: 18px;
- line-height: 25px;
- border-radius: 4px;
- }
- .header a.logo {
- font-size: 25px;
- font-weight: bold;
- }
- .header a:hover {
- background-color: #ddd;
- color: black;
- }
- .header a.active {
- background-color: dodgerblue;
- color: white;
- }
- .header-right {
- float: right;
- }
- @media screen and (max-width: 500px) {
- .header a {
- float: none;
- display: block;
- text-align: left;
- }
- .header-right {
- float: none;
- }
- }
- </style>
- </head>
- <body>
- <div class="header">
- <a href="PeTa.html" class="logo"><img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png"></a>
- <div class="header-right">
- <a class="active" href="PeTa.html">Home</a>
- <a href="PetaGallery.html">Gallery</a>
- <a href="PeTaContact.html">Contact</a>
- <a href="#about">Application</a>
- </div>
- </div>
- <div style="padding-left:20px">
- <h1>Responsive Header</h1>
- <p>Resize the browser window to see the effect.</p>
- <p>Some content..</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement