I created a menu with HTML5 and CSS3 so far, I left it right at the top of the screen and everything is fine, but when I open the same file on another screen the menu is no longer formatted in the right corner like I had left.
Does anyone have any tips or something I'm missing?
nav#menu ul {
list-style: none;
text-transform: uppercase;
position: absolute;
top: -15px;
left: 450px
}
nav#menu li {
display: inline-block;
background-color: #dddddd;
padding: 6px;
margin: -1px
}
nav#menu {
display: block;
}
<header id="header1">
<hgroup>
<h1>Milky Way</h1>
<h2>Solar System</h2>
</hgroup>
<img id="icone" src="_images/solarsystems01.png" alt="this images is about solar systems" title="solar system" width="250" height="50" align="right"/>
<nav id="menu">
<ul>
<li onmouseover="mudaFoto('_images/Mercurio.png')" onmouseout="mudaFoto('_images/solarsystems01.png')"><a href="sun.html">Sun</a></li>
<li>Mercury</li>
<li>Venus</li>
<li>Earth</li>
<li>Mars</li>
<li>Jupter</li>
<li>Saturn</li>
<li>Uranus</li>
<li>Neptune</li>
<li>Pluto</li>
</ul>
</nav>
</header>