Jump to content

[SOLVED] Resolution problem (positioning)


Andy17

Recommended Posts

Hey guys,

 

 

I am making this website and I made it in a high resolution, so when I went back to 1024x768 to test it, there were a few things wrong. Please take a look at the following website in 1024x768 and you will see that my menu is misplaced:

 

http://test.jokeheaven.eu

 

 

The menu image: http://test.jokeheaven.eu/images/double.png

 

 

The menu's HTML code:

 

<ul id="menu">  
<li id="home"><a href="/" rel="nofollow"><span>Home</span></a></li>
<li id="about"><a href="about.php" rel="nofollow"><span>About</span></a></li>
<li id="portfolio"><a href="portfolio.php" rel="nofollow"><span>Portfolio</span></a></li>
<li id="prices"><a href="prices.php" rel="nofollow"><span>Prices</span></a></li>
<li id="order"><a href="order.php" rel="nofollow"><span>Order</span></a></li>
<li id="contact"><a href="contact.php" rel="nofollow"><span>Contact</span></a></li>
</ul>

 

 

The menu's CSS code:

 

/* +++++ Menu settings begin +++++ */


#menu {  
background:url("images/double.png") 0 0 no-repeat;
width:720px;
height:35px;
margin-left:20px;
margin-top:0px;
padding:0;
float:left;
}

#menu li span {
display: none;
}
   
#menu li {
float:left;
list-style:none;
position:relative;
}
  
#menu li, #menu a {  
height:34px;    /* Button height */  
display:block;  
margin:0;  
padding:0;  
}  
   
li#home {
width:95px;
}

li#about {
width:100px;
}

li#portfolio {
width:160px;
}

li#prices {
width:110px;
}

li#order {
width:110px;
}

li#contact {
width:132px;
}


/* ----- Menu settings end ----- */



/* +++++ Menu hovers begin +++++ */


#home a:hover {
background:url("images/double.png") -0px  -36px no-repeat;
}

#about a:hover {
background:url("images/double.png") -95px  -36px no-repeat;
}

#portfolio a:hover {
background:url("images/double.png") -195px  -36px no-repeat;
}

#prices a:hover {
background:url("images/double.png") -355px  -36px no-repeat;
}

#order a:hover {
background:url("images/double.png") -465px -36px no-repeat;
}

#contact a:hover {
background:url("images/double.png") -575px -35px no-repeat;
}


/* ----- Menu hovers end ----- */

 

The thing is that I want it to stay at the top, to the right of the logo. It does just that in 1280x1024, but I need it to stay there for 1024x768. I tried just making the menu image smaller, but for some reason it didn't seem to help. If you have any ideas, please let me know.

 

Thank you in advance!

Link to comment
Share on other sites

Thank you for your reply. While testing the website on my laptop (widescreen), I noticed an error; it appears that the menu does the exact same thing as explained in 1280x800, but only in Internet Explorer (8) - it works perfectly in Firefox (2).

 

Any ideas?

Link to comment
Share on other sites

I'm guessing IE6? It doesn't recognize min-width. But if you google around, you can find hacks that fake the same functionality in IE6.

 

Sorry, I didn't realize that the forum automatically made 8+) a smiley. It was meant to say Internet Explorer 8.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.