Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6755895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:27:27+00:00 2026-05-26T13:27:27+00:00

I’ve got a question about creating a vertical image sprite menu. Here’s my HTML:

  • 0

I’ve got a question about creating a vertical image sprite menu.

Here’s my HTML:

<div id="menu">

    <ul id="menulijst">
    <li id="index"> <a href="index.html"> home </a> </li>
    <li id="auteur"> <a href="auteur.html" > de auteur </a> </li>
    <li id="recensies"> <a href="recensies.html"> recensies </a> </li> 
    <li id="siberie"> <a href="siberie.html"> siberie </a> </li>
    </ul> 

</div> 

Here’s a picture of the menu I created in photoshop and how it looks in my site:

enter image description here

I’m new to creating web pages so I found this site to explain me how to make the sprite work but somehow whatever I try it doesn’t. (I have found more sites but I can’t post them here because I don’t have enough points)

  1. http://line25.com/tutorials/how-to-create-a-css-menu-using-image-sprites

My CSS:

@charset "UTF-8";
/* CSS Document */


* 
{
margin: 0;
padding: 0;
} 

body
{
color: rgb(0,0,0);
background-color: #ffffff;
line-height: 1.6;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
}

div#wrapper
{
width: 790px; 
background-color: #cccccc;
margin: auto; 
} 

div#header 
{ 
padding: 10px 20px;
background-color: #333333;
text-align: center;
color: #ffffff;
} 

div#menu 
{ 
width: 160px; 
float: left;
height: 335px;
border: 1px rgb(153,153,153);
} 

#menulijst
{
float: left;
width: 160px; 
height: 335px; 
background-image:url(../isweb/menuknoppen.png);
position: relative;
}

#menulijst li
{
margin: 0; 
padding: 0; 
list-style: none;
position: absolute; 
top: 0;
}

#menulijst li, #menulijst a 
{
height: 200px; 
display: block;
}

#index {left: 0; width: -95px;}
#auteur {left: 0; width: -75px;}
#recensies {left: 0; width: -110px;}
#siberie {left: 0; width: -117px;}


div#menu ul li 
{
margin: 10px;
}

div#content
{ 
width: 590px; 
padding: 10px 20px; 
background-color: #999999;
float: right; 
} 

div#footer
{ 
clear: both; 
padding: 10px 20px;
background-color: #333333; 
text-align: center; 
color: #ffffff;
}

div#footer ul li 
{
display: inline;
margin: 10px;
}

h1
{
font-size: 16px; 
text-transform: uppercase; 
}

a
{
color: rgb(204,204,204);
text-transform: uppercase;
text-decoration: none;
}

p
{
margin: 10px 0px 0px 0px;
}

.zijwolf
{
float: left; 
padding: 15px 15px 5px 0px;
}

li
{
list-style: none;
}

I made a menu based on the one in the first link but with my own twist (vertical, different color, etc.)
I put the darker color behind the lighter color for the hover effect explained in the first link but I can’t seem to position the links behind the right box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:27:28+00:00Added an answer on May 26, 2026 at 1:27 pm

    It looks like you haven’t declared the on hover property and background position.

    Try adding and tweaking.

    ul#menulist li a.index {
       width: //add width px;
       background-position: 0 0;
    }
    
    ul#menulist li a.index:hover {
       background-position: -50px 0; //move the pixel position according to your sprite.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
i got an object with contents of html markup in it, for example: string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.