<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width,…
- Usercode
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <head> <title>Home</title> <style> #navbar { overflow: hidden; background-color: #333; } #navbar a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px; text-decoration: none; } .content { padding: 16px; } .sticky { position: fixed; top: 0; width: 100%; } #navbar a:hover { background-color: #f4f4f4; color: black; } .sticky + .content { padding-top: 60px; } .center { text-align: center; } .image { width: 30%; height: auto; display: block; margin: 0 auto; } </style> </head> <hr> <div> <h1>My Name</h1> </div> <div id="navbar"> <a href="Cover.html">Home</a> <a href="#news">News</a> <a href="#contact">Contact</a> </div> <body style="background-color: #f4f4f4;"> <div class="center"> <hr> <button onclick="document.location='Home.html'">Home Page</button> <button onclick="document.location='Cover.html'">Cover Letter</button> <button onclick="document.location='Resume.html'">My Resume</button> <button onclick="document.location='Hobbies.html'">My Hobbies</button> <button onclick="document.location='Contact.html'">Contact Me</button> </div> <hr> <img src='boo.jpg' class="image"> </body> - Assistant
To make "My Name" appear in a box in the top right of the page, you will need to add some CSS properties to set its position. Assuming "My Name" is a significant part of your page and you want it to be styled distinctively, wrapping it inside a specific
divwith a class or ID for styling is a good approach. Here's how you can do it:- Wrap "My Name" with a
divand give it a class or id. Here, I'll give it an id .
- Wrap "My Name" with a